Thomas 7 bulan lalu
induk
melakukan
4a0b1676c2
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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())
 }