Skip to content

Commit

Permalink
Split long read fastqs on underscores (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika authored Nov 9, 2022
1 parent 630f0a1 commit 3eb07cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ workflow {
if (params.hybrid) {
ch_assembly_mode = Channel.of("hybrid")
ch_short_reads = Channel.fromFilePairs( params.fastq_search_path, flat: true ).map{ it -> [it[0].split('_')[0], [it[1], it[2]]] }.unique{ it -> it[0] }
ch_long_reads = Channel.fromPath( params.long_reads_search_path ).map{ it -> [it.baseName.split("\\.")[0], [it]] }
ch_long_reads = Channel.fromPath( params.long_reads_search_path ).map{ it -> [it.baseName.split("_")[0], [it]] }
ch_fastq = ch_short_reads.join(ch_long_reads).map{ it -> [it[0], it[1] + it[2]] }
} else if (params.long_only) {
ch_assembly_mode = Channel.of("long")
Expand Down

0 comments on commit 3eb07cd

Please sign in to comment.