Skip to content

Commit 9f79d6e

Browse files
authored
Fix: asm_b_diff calculation in asm DMP calling (#17)
1 parent 21416bc commit 9f79d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/asm_cmain.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ cmain_asm_ss_dmps <- function(sample, config) {
449449
prob <- 0.99
450450

451451
# Calculate differential methylation given effect size
452-
asm_b_diff <- dt[["ref_m"]] - dt[["alt_m"]]
452+
asm_b_diff <- dt[["alt_m"]] - dt[["ref_m"]]
453453

454454
# Calculate DMP probability from bulk data
455455
# Probabilities are calculated on bulk counts

0 commit comments

Comments
 (0)