Skip to content

Commit

Permalink
null reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-james committed Feb 9, 2024
1 parent 7cd0f73 commit 96dcf68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/deg.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ deg.dysregulation <- function(sce, pathology, sample.col, covariates=NULL, verb
cd = SummarizedExperiment::colData(pb)
if (attr(pb, "class") == "SingleCellExperiment") {
rd = SingleCellExperiment::reducedDims(sce)[[reduction]]
X = t(rd)
if (!is.null(rd)) {
X = t(rd)
} else {
pb = se_tmm(pb, log=TRUE)
X = SummarizedExperiment::assays(pb)$TMM
}
} else {
pb = se_tmm(pb, log=TRUE)
X = SummarizedExperiment::assays(pb)$TMM
Expand Down

0 comments on commit 96dcf68

Please sign in to comment.