Skip to content

Commit 12d8a58

Browse files
committed
push debug example
1 parent 690a2b9 commit 12d8a58

File tree

2 files changed

+2209
-1
lines changed

2 files changed

+2209
-1
lines changed

src/base.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ fn parse_region(
6868
ignore_strand: bool,
6969
by_strand: bool,
7070
) -> String {
71+
let n_samples = bam_path_list.len();
72+
7173
let mut p2depth: HashMap<(u32, usize), (u32, u32)> = HashMap::new();
7274
let mut p2base: HashMap<(u32, usize), (Vec<usize>, Vec<usize>)> = HashMap::new();
7375
let mut p2ins: HashMap<(u32, usize), (Vec<u32>, Vec<u32>)> = HashMap::new();
7476
let mut p2del: HashMap<(u32, usize), (Vec<u32>, Vec<u32>)> = HashMap::new();
7577

76-
let n_samples = bam_path_list.len();
7778
for (i, bam_path) in bam_path_list.iter().enumerate() {
7879
// read bam file (SLOW STEP)
7980
let mut bam_reader = bam::IndexedReader::from_path(&bam_path).unwrap();

0 commit comments

Comments
 (0)