Thomas 7 月之前
父节点
当前提交
4a0b1676c2
共有 1 个文件被更改,包括 2 次插入1 次删除
  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())
 }