Thomas há 7 meses atrás
pai
commit
4a0b1676c2
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/collection/bam.rs

+ 2 - 1
src/collection/bam.rs

@@ -244,7 +244,8 @@ pub fn bam_compo(file_path: &str, sample_size: usize) -> anyhow::Result<Vec<(Str
         .map(|(k, n)| (k.0.to_string(), k.1.to_string(), n as f64 * 100.0 / sample_size as f64))
         .map(|(rg, f, p)| {
             let (a, _) = rg.split_once('_').unwrap();
-            (a.to_string(), f, p)
+            let (b, _) = f.split_once('_').unwrap();
+            (a.to_string(), b.to_string(), p)
         })
         .collect())
 }