Skip to content

Commit

Permalink
removing par_iter on process_bam
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysnewell committed Jun 25, 2020
1 parent e4669dd commit 306e481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/estimation/contig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ pub fn pileup_variants<R: NamedBamReader + Send,
// Process Short Read BAMs
if bam_readers.len() > 0 {
info!("Performing guided variant calling...");
bam_readers.into_par_iter().enumerate().for_each(|(sample_idx, bam_generator)| {
bam_readers.into_iter().enumerate().for_each(|(sample_idx, bam_generator)| {
process_bam(bam_generator,
sample_idx,
sample_count,
Expand Down Expand Up @@ -253,7 +253,7 @@ pub fn pileup_variants<R: NamedBamReader + Send,
}
if longreads.len() > 0 {
long_threads = std::cmp::max(n_threads / longreads.len(), 1);
longreads.into_par_iter().enumerate().for_each(|(sample_idx, bam_generator)| {
longreads.into_iter().enumerate().for_each(|(sample_idx, bam_generator)| {
process_bam(bam_generator,
sample_idx,
sample_count,
Expand Down

0 comments on commit 306e481

Please # to comment.