Skip to content

Commit

Permalink
fix combat_seq for SE
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed Jul 24, 2023
1 parent 7d0d68e commit c2545c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/methods_SE.R
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ setMethod("remove_redundancy",

my_assay_adjusted =
my_assay_adjusted |>
sva::ComBat_seq(batch = my_batch[,i],
sva::ComBat_seq(batch = my_batch[,i] |> pull(1),
covar_mod = design,
full_mod=TRUE,
...)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-bulk_methods_SummarizedExperiment.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ test_that("Get adjusted counts multiple factors - SummarizedExperiment",{

res =
cm |>
adjust_abundance(.factor_unwanted = c(time, batch),
.factor_of_interest = dead,
adjust_abundance(.factor_unwanted = c(batch),
.factor_of_interest = time,
.abundance = count_scaled,
method = "combat_seq",
shrink.disp = TRUE,
Expand Down

0 comments on commit c2545c0

Please sign in to comment.