Skip to content

Commit

Permalink
p-value update
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyunhan committed Sep 10, 2024
1 parent 7502d22 commit fb82611
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/detect.outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -281,17 +281,17 @@ detect.outliers <- function(

k <- 1;
# Record results for the remaining samples in `x`.
next.entry.name <- paste0(
next.name <- paste0(
'round',
k
);

# Combine results from all genes
outlier.test.results.list[[next.entry.name]] <- do.call(rbind, outlier.test.results)
outlier.test.results.list[[next.name]] <- do.call(rbind, outlier.test.results)

# Calculate FDR
outlier.test.results.list[[next.entry.name]]$fdr <- stats::p.adjust(
p = outlier.test.results.list[[next.entry.name]]$p.value,
outlier.test.results.list[[next.name]]$fdr <- stats::p.adjust(
p = outlier.test.results.list[[next.name]]$p.value,
method = 'fdr'
);

Expand Down

0 comments on commit fb82611

Please sign in to comment.