|
|
@@ -128,8 +128,8 @@ pub fn range_depths(
|
|
|
) -> Result<Vec<u32>> {
|
|
|
bam.fetch((chr, start, stop))?;
|
|
|
|
|
|
- let mut depths = Vec::with_capacity((stop - start) as usize);
|
|
|
- depths.fill(0);
|
|
|
+ let mut depths = vec![0];
|
|
|
+ depths.resize((stop - start) as usize, 0);
|
|
|
|
|
|
for p in bam.pileup() {
|
|
|
let pileup = p.context(format!("eRR"))?;
|