diff --git a/webgestalt_lib/src/methods/multiomics.rs b/webgestalt_lib/src/methods/multiomics.rs index 533628e..2215a92 100644 --- a/webgestalt_lib/src/methods/multiomics.rs +++ b/webgestalt_lib/src/methods/multiomics.rs @@ -248,11 +248,12 @@ fn normalize(list: &mut Vec, method: NormalizationMethod) -> Vec = Vec::new(); for (i, item) in list.iter().enumerate() { final_list.push(RankListItem { analyte: item.analyte.clone(), - rank: (i as f64 - median) / median, + rank: (i as f64 - median) / len, }); } final_list