Skip to content

Commit

Permalink
change length of keep_rows in batchCorrectionAssay (ComBat)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnaake committed Jun 21, 2024
1 parent 75205a0 commit 4db6aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tab_values.R
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ batchCorrectionAssay <- function(se,

## require at least 2 observations per feature and level
batch_u <- unique(batch)
keep_rows <- rep(TRUE, length(batch))
keep_rows <- rep(TRUE, nrow(se))
for (i in batch_u) {
sum_nas <- apply(a_b[, batch == i, drop = FALSE], 1,
FUN = function(row) sum(!is.na(row)))
Expand Down

0 comments on commit 4db6aff

Please sign in to comment.