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())
 }