We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3193ecd commit a42e55dCopy full SHA for a42e55d
src/covcalc.rs
@@ -1323,6 +1323,9 @@ pub fn region_divider(regs: &Vec<Region>) -> Vec<Vec<Region>> {
1323
bplen = 0;
1324
}
1325
1326
+ if tempregionvec.len() > 0 {
1327
+ blocks.push(tempregionvec.clone());
1328
+ }
1329
blocks
1330
1331
src/multibamsummary.rs
@@ -136,6 +136,8 @@ pub fn r_mbams(
136
137
// Divide up the regions into regionBlocks
138
let regionblocks = region_divider(®ions);
139
+
140
+ assert!(regionblocks.len() > 0, "No regions to process. Exiting.");
141
if verbose {
142
println!("Regions divided into {} parallel blocks", regionblocks.len());
143
println!("Start coverage calculation");
0 commit comments