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