Skip to content

Commit a506997

Browse files
committed
fixed bug in calc_diff_abund_deseq2
allows use of factors for grouping
1 parent 6fe54ca commit a506997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/calculations--differential_abundance.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ calc_diff_abund_deseq2 <- function(obj, data, cols, groups, other_cols = FALSE,
115115
other_cols <- get_taxmap_other_cols(obj, data, cols, other_cols)
116116

117117
# Get every combination of groups to compare
118-
combinations <- t(utils::combn(unique(groups), 2))
118+
combinations <- t(utils::combn(unique(as.character(groups)), 2))
119119
combinations <- lapply(seq_len(nrow(combinations)), function(i) combinations[i, ])
120120

121121
# Format data for DESeq2

0 commit comments

Comments
 (0)