From 9c82180f2fb2b15ddf285c30fb505ed598502eac Mon Sep 17 00:00:00 2001 From: Tony Wu Date: Wed, 18 Feb 2026 20:49:59 -0500 Subject: [PATCH 1/2] normalize weights to 1 --- R/utils_groupcomparison.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/utils_groupcomparison.R b/R/utils_groupcomparison.R index c7713e42..3753a7c6 100644 --- a/R/utils_groupcomparison.R +++ b/R/utils_groupcomparison.R @@ -141,6 +141,7 @@ getSamplesInfo = function(summarization_output) { if ("Variance" %in% colnames(input) & !all(is.na(input$Variance))){ weight_input = 1/input$Variance + weight_input = weight_input / mean(weight_input) # normalize weights } else { weight_input = NULL } From 40da5cfa0fcb99b6d484b8e9843b000459a674ff Mon Sep 17 00:00:00 2001 From: Tony Wu Date: Wed, 18 Feb 2026 21:21:44 -0500 Subject: [PATCH 2/2] unnromalized variable name --- R/utils_groupcomparison.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/utils_groupcomparison.R b/R/utils_groupcomparison.R index 3753a7c6..f082bc32 100644 --- a/R/utils_groupcomparison.R +++ b/R/utils_groupcomparison.R @@ -140,8 +140,8 @@ getSamplesInfo = function(summarization_output) { is_single_subject, has_tech_replicates) { if ("Variance" %in% colnames(input) & !all(is.na(input$Variance))){ - weight_input = 1/input$Variance - weight_input = weight_input / mean(weight_input) # normalize weights + unnormalized_weight_input = 1/input$Variance + weight_input = unnormalized_weight_input / mean(unnormalized_weight_input) } else { weight_input = NULL }