Last active
April 18, 2019 15:28
-
-
Save lindenb/8213684e5a90a3c7589de0b7ea057b90 to your computer and use it in GitHub Desktop.
biostar 375624 https://www.biostars.org/p/375624/ "How to merge multiple fastq file using table?" nextflow fastq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process mergeFastq { | |
tag "merging ${sample}" | |
input: | |
set sample,fastqs from Channel.fromPath(params.input).splitCsv(header:false,sep:'\t',skip:1).groupTuple(by:0) | |
output: | |
file("${sample}.fastq") | |
script: | |
""" | |
cat ${fastqs.collect{ params.basedir+"/"+it+".fastq "}.join(" ")} > ${sample}.fastq | |
""" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment