Skip to content

Commit

Permalink
fix: Restore mistakenly deleted code
Browse files Browse the repository at this point in the history
  • Loading branch information
dialvarezs committed Oct 28, 2024
1 parent 3d98415 commit 8b4fcc7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion workflows/mag.nf
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,20 @@ workflow MAG {
// due to strange output file scheme in AR2, have to manually separate
// SE/PE to allow correct pulling of reads after.
ch_adapterremoval_in = ch_raw_short_reads.branch {
siMerge
single: it[0]['single_end']
paired: !it[0]['single_end']
}

ADAPTERREMOVAL_PE(ch_adapterremoval_in.paired, [])
ADAPTERREMOVAL_SE(ch_adapterremoval_in.single, [])

ch_short_reads_prepped = Channel.empty()
ch_short_reads_prepped = ch_short_reads_prepped.mix(ADAPTERREMOVAL_SE.out.singles_truncated, ADAPTERREMOVAL_PE.out.paired_truncated)

ch_versions = ch_versions.mix(ADAPTERREMOVAL_PE.out.versions.first(), ADAPTERREMOVAL_SE.out.versions.first())
}
}
else {
ch_short_reads_prepped = ch_raw_short_reads
}

Expand Down

0 comments on commit 8b4fcc7

Please sign in to comment.