[SRX1734976, [~/PATH_TO_DIR/work/c3/6beac3c84990915e1e78309ba24815/SRR3463850_1.fastq, ~/PATH_TO_DIR/work/67/5bfbbb51ae18f0aa6685b91c98aa20/SRR3463851_1.fastq]][SRX1734541, [~/PATH_TO_DIR/work/e6/f6fcf3930e97fa409b472e5b37edca/SRR3460000_1.fastq]]
lrwxrwxrwx 1 john.hadish 91 Apr 24 19:15 SRR3463850_1.fastq -> ~/PATH_TO_DIRwork/e4/6faaf89302e28a60883e11b2a9de8e/SRR3463850_1.fastqlrwxrwxrwx 1 john.hadish 91 Apr 24 19:15 SRR3463851_1.fastq -> ~/PATH_TO_DIR/work/33/cde3c590185c4fee2ad29ab117e480/SRR3463851_1.fastq-rw-r--r-- 2 john.hadish 590348 Apr 24 19:15 SRX1734976_1.fastq-rw-r--r-- 2 john.hadish 0 Apr 24 19:15 SRX1734976_2.fastq
[SRX2589027, [[~/PATH_TO_DIR/work/d3/2a66a4fb4579bcbdd7b8b62859623f/SRR5285723_1.fastq, ~/PATH_TO_DIR/work/d3/2a66a4fb4579bcbdd7b8b62859623f/SRR5285723_2.fastq], [~/PATH_TO_DIR/work/d3/f409e6ff8928863c6a903094182b8c/SRR5285722_1.fastq, ~/PATH_TO_DIR/work/d3/f409e6ff8928863c6a903094182b8c/SRR5285722_2.fastq]]]
[SRX2081981, [[~/PATH_TO_DIR/work/e2/663dd08280d902001d0952230303d8/SRR4113368_1.fastq, ~/PATH_TO_DIR/work/e2/663dd08280d902001d0952230303d8/SRR4113368_2.fastq]]]
total 8lrwxrwxrwx 1 john.hadish 84 Apr 24 19:15 input.1 -> ~/PATH_TO_DIR/work/tmp/cc/541f9775a405e24c48d6db6b81bc14/input.1lrwxrwxrwx 1 john.hadish 84 Apr 24 19:15 input.2 -> ~/PATH_TO_DIR/work/tmp/7f/10052b31520caa96da8c8962121714/input.2-rw-r--r-- 2 john.hadish 0 Apr 24 19:15 SRX2589027_1.fastq-rw-r--r-- 2 john.hadish 0 Apr 24 19:15 SRX2589027_2.fastq
[/scidas/arabidopsis/trial/sra2gev/work/a7/6b059184fdd8a5fdf9436720afa746/SRR5285723_1.fastq, /scidas/arabidopsis/trial/sra2gev/work/a7/6b059184fdd8a5fdf9436720afa746/SRR5285723_2.fastq]
// This section downloads the files that are either paired or unpaired and passes them to the raw_fastq channel// The srx value was determined in the step prior to this based on a srr from a list
process fastq_dump {module 'sratoolkit'publishDir "$srx", mode: 'link'time '24h'tag { sra }input:set val(srx), val(sra) from srx_valueoutput:set val(srx), file("${sra}_?.fastq") into raw_fastq //The output can be paired or unpaired"""fastq-dump --split-files $sra"""}
// Here is where I use the groupby that produces a nice channel for unpaired data, but nested tuples for paired
raw_fastq.groupTuple().set { grouped_fastq }
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
process yes_nests{output:set val("SRX0006"), file("*.txt") into nested_channel"""echo foo > results.txtecho bar > other_results.txt"""}
process no_nests{output:set val("SRX0006"), file("results.txt"), file("other_results.txt") into non_nested_channel"""echo foo > results.txtecho bar > other_results.txt"""}
non_nested_channel.println()nested_channel.println()
[SRX0006, [/home/john.hadish/Minimal_Working_Example/work/3a/c728dbd76474b840b2853b2ad95654/other_results.txt, /home/john.hadish/Minimal_Working_Example/work/3a/c728dbd76474b840b2853b2ad95654/results.txt]]
[SRX0006, /home/john.hadish/Minimal_Working_Example/work/86/f227df662643a071caac5631908c88/results.txt, /home/john.hadish/Minimal_Working_Example/work/86/f227df662643a071caac5631908c88/other_results.txt]
Tip
By default all the files matching the specified glob pattern are emitted by the channel as a sole (list) item. It is also possible to emit each file as a sole item by adding the mode flatten attribute in the output file declaration.
output:set val(srx), file("${sra}_?.fastq") into raw_fastq mode flatten