From 550f3d1812900cd051cd714486dd5bb7d23436ea Mon Sep 17 00:00:00 2001 From: "Jacob T. Nearing" <31660222+nearinj@users.noreply.github.com> Date: Tue, 12 Sep 2023 10:10:51 -0300 Subject: [PATCH] Fixed issue where 0 counts were calculated on normalized data when they should have been calculated on count data (#38) Co-authored-by: Jacob Nearing --- 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)) ) ################################