Skip to content

Commit

Permalink
Make comments more clear & accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjameskennedy committed Jan 20, 2025
1 parent 6d94596 commit 4e73951
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workflows/bacterial_base.nf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ workflow CALL_BACTERIAL_BASE {
.set{ ch_raw_reads }

if ( params.useHostile ) {
// downsample reads
// remove human reads
hostile( ch_raw_reads ).reads.set{ ch_depleted_reads }
} else {
ch_raw_reads.set{ ch_depleted_reads }
Expand All @@ -60,10 +60,10 @@ workflow CALL_BACTERIAL_BASE {
ch_depleted_reads.set{ ch_depleted_sampled_reads }
}

// reads trim and clean and recreate reads channel if the reads were trimmed
// reads trim and clean and recreate reads channel if the reads were filtered or downsampled
assembly_trim_clean(ch_depleted_sampled_reads.join(ch_meta)).set { ch_clean_reads_w_meta }
Channel.empty()
.mix( ch_depleted_sampled_reads, ch_clean_reads_w_meta ) // if samples are trimmed
.mix( ch_depleted_sampled_reads, ch_clean_reads_w_meta ) // if samples are filtered or downsampled
.tap{ ch_reads } // create reads channel
.join( ch_meta ) // add meta info
.set{ ch_reads_w_meta } // write as temp channel
Expand Down

0 comments on commit 4e73951

Please sign in to comment.