Skip to content

Commit

Permalink
Merge pull request #245 from jr-leary7/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jr-leary7 authored Oct 11, 2024
2 parents 517f3ae + 15eefba commit 4956c19
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
shell: bash

- name: Upload test results
if: failure()
if: always()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
name: coverage-test-upload
path: ${{ runner.temp }}/package
2 changes: 1 addition & 1 deletion R/testDynamic.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#' \item If using the GEE or GLMM model architectures, ensure that the observations are sorted by subject ID (this is assumed by the underlying fit implementations). If they are not, the models will error out.
#' \item If \code{gee.bias.correction.method} is set to "kc" or "df", a bias adjustment will be used to inflate the robust variance-covariance matrix prior to estimating the Wald test statistic. This is useful when the number of subjects is small and / or the number of per-subject observations is very large. Doing so will remove the bias in the sandwich estimator in small-sample cases. Currently, we suggest keeping this NULL and using the model-based variance estimates and specifying the "ar1" correlation structure.
#' }
#' @return A list of lists, where each element is a gene and each gene contains sublists for each element. Each gene-lineage sublist contains a gene name, lineage number, default \code{marge} vs. null model test results, model statistics, and fitted values. Use \code{\link{getResultsDE}} to tidy the results.
#' @return A list of lists, where each element is a gene and each gene contains sublists for each lineage. Each gene-lineage sublist contains a gene name, lineage number, default \code{marge} vs. null model test results, model statistics, and fitted values. Use \code{\link{getResultsDE}} to tidy the results.
#' @seealso \code{\link{getResultsDE}}
#' @seealso \code{\link{testSlope}}
#' @seealso \code{\link{marge2}}
Expand Down
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
2 changes: 1 addition & 1 deletion man/testDynamic.Rd

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

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 4956c19

Please sign in to comment.