Skip to content

Commit bdef4ef

Browse files
committed
fix: preserve assay dimnames in normalization
1 parent 8afb7e9 commit bdef4ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

R/preprocessing.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ NormalizeData <- function(object, scale.factor = 10000) {
7070
)
7171
}
7272
logcounts <- log1p(logcounts)
73+
dimnames(logcounts) <- dimnames(object)
7374
SummarizedExperiment::assay(object, "logcounts") <- logcounts
7475
object <- sclet_restore_state(object, prev_state)
7576
object <- sclet_set_layer(object, name = "counts", assay = "counts", role = "counts", active = FALSE)

0 commit comments

Comments
 (0)