Skip to content

Commit

Permalink
fix misspelled variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ATpoint committed Aug 2, 2024
1 parent daea348 commit 9fd1463
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: SigGenes
Title: Automated differential analysis and signature generation for bulk and single-cell data
Description: Automated differential analysis between groups based on limma-voom and generation of per-group signatures via custom filtering.
Version: 1.0.1
Version: 1.0.2
Author: Alexander Bender [aut,cre]
Maintainer: Alexander Bender <[email protected]>
License: LGPL (>=2)
Expand Down
8 changes: 6 additions & 2 deletions R/de_testing.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@
#' sce$donor <- rep(LETTERS[1:4], 250)
#' res_pairwise <- de_limma(x = sce, aggregate_by = c("group", "donor"),
#' main_covariate = "group", other_covariates = c("donor"))
#'
#' res_pairwise_block <- de_limma(x = sce, aggregate_by = c("group", "donor"),
#' main_covariate = "group", block = "donor")
#'
#' res_average <- de_limma(x = sce, aggregate_by = c("group", "donor"),
#' main_covariate = "group", other_covariates = c("donor"),
#' mode="average")
#'
#' res_singlecell <- de_limma(x = sce, main_covariate = "group")
#'
#' @author Alexander Bender
#'
#' @references
Expand Down Expand Up @@ -130,9 +134,9 @@ de_limma <- function(x, use_assay = "counts", aggregate_by=NULL, use_existing_sf
sf <- suppressWarnings(sizeFactors(x))
# scran::convertTo()
if (!is.null(sf)) {
nf <- log(sf/y$samples$lib.size)
nf <- log(sf/pb$samples$lib.size)
nf <- exp(nf - mean(nf))
y$samples$norm.factors <- nf
pb$samples$norm.factors <- nf
}

if(use_existing_sf){
Expand Down
4 changes: 4 additions & 0 deletions man/de_limma.Rd

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

0 comments on commit 9fd1463

Please sign in to comment.