From cce37e3df863c35f79e81595c357937d40bb44ed Mon Sep 17 00:00:00 2001 From: Jacob Nearing Date: Mon, 11 Sep 2023 17:03:24 -0400 Subject: [PATCH] Fixed issue where 0 counts were calculated on normalized data when they should have been calculated on count data --- R/Maaslin2.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/Maaslin2.R b/R/Maaslin2.R index 8e7298e..d94c84f 100755 --- a/R/Maaslin2.R +++ b/R/Maaslin2.R @@ -950,7 +950,7 @@ Maaslin2 <- fit_data$results, 1, FUN = function(x) - length(which(filtered_data_norm[, x[1]] > 0)) + length(which(filtered_data[, x[1]] > 0)) ) ################################