Skip to content

Commit 0aa06c9

Browse files
committed
fix multiplier calcuation
1 parent 47ed6b2 commit 0aa06c9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

R/methods_SE.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,12 @@ setMethod("tidybulk", "RangedSummarizedExperiment", .tidybulk_se)
161161

162162
# Calculate multiplier
163163
multiplier =
164-
1 %>%
165-
divide_by(library_size_filtered * nf) %>%
164+
# Relecting the ratio of effective library size of the reference sample to the effective library size of each sample
165+
(library_size_filtered[reference] * nf[reference]) %>%
166+
divide_by(library_size_filtered * nf)
166167

167168
# NOT HELPING - Put everything to the reference sample scale
168-
multiply_by(library_size_filtered[reference])
169+
# multiply_by(library_size_filtered[reference])
169170

170171
# At the moment no because would be different from TIBBLE behaviour
171172
# %>%

0 commit comments

Comments
 (0)