Skip to content

Commit

Permalink
updated FDR correction in testSlope() -- closes #239
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-leary7 committed Oct 11, 2024
1 parent 6b9393d commit 15eefba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/testSlope.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @importFrom dplyr arrange desc mutate if_else with_groups
#' @importFrom stats p.adjust
#' @param test.dyn.res The list returned by \code{\link{testDynamic}} - no extra processing required. Defaults to NULL.
#' @param p.adj.method The method used to adjust the \emph{p}-values for each coefficient. Defaults to "holm".
#' @param p.adj.method The method used to adjust the \emph{p}-values for each coefficient. Defaults to "fdr".
#' @param fdr.cutoff The FDR threshold for determining statistical significance. Defaults to 0.01.
#' @return A dataframe containing the genes, breakpoints, and coefficient \emph{p}-values from each model.
#' @seealso \code{\link{testDynamic}}
Expand All @@ -19,7 +19,7 @@
#' slope_test_res <- testSlope(scLANE_models)

testSlope <- function(test.dyn.res = NULL,
p.adj.method = "holm",
p.adj.method = "fdr",
fdr.cutoff = 0.01) {
# check inputs
if (is.null(test.dyn.res)) { stop("You forgot to provide results from testDynamic() to testSlope().") }
Expand Down
4 changes: 2 additions & 2 deletions man/testSlope.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15eefba

Please sign in to comment.