Skip to content

Commit

Permalink
Handle fastp outputs with and without spitting
Browse files Browse the repository at this point in the history
  • Loading branch information
scwatts committed May 10, 2024
1 parent 624662d commit b7f6370
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions subworkflows/local/read_alignment_dna.nf
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ workflow READ_ALIGNMENT_DNA {

ch_versions = ch_versions.mix(FASTP.out.versions)

// Prepare outputs within conditional block
}

// Now prepare according to FASTQs splitting
if (max_fastq_records > 0) {

ch_fastqs_ready = FASTP.out.fastq
.flatMap { meta_fastq, reads_fwd, reads_rev ->

Expand Down Expand Up @@ -115,7 +119,10 @@ workflow READ_ALIGNMENT_DNA {

} else {

ch_fastqs_ready = ch_fastq_inputs
// Select appropriate source
ch_fastq_source = umi_length > 0 ? FASTP.out.fastq : ch_fastq_inputs

ch_fastqs_ready = ch_fastq_source
.map { meta_fastq, fastq_fwd, fastq_rev ->

def meta_fastq_ready = [
Expand Down

0 comments on commit b7f6370

Please sign in to comment.