lanes = Channel.from(1..4)
barDir = '/mnt/home/ngebremedhin/outputs/Nextflow/Barcodes'
process processA {
publishDir "${barDir}/fastq"
input:
val lane from lanes
output:
file("hello_${lane}.txt") into welcomeFiles
script:
"""
echo "Hello">hello_${lane}.txt
"""
}
process processB {
publishDir "${barDir}/fastq"
input:
file x from welcomeFiles
output:
file "${x}.pdf" into finalOut
script:
"""
mv ${x} ${x}.pdf
"""
}
Caused by:
Missing output file(s) `hello_1.txt` expected by process `processA (1)`
Command executed:
/mnt/home/ngebremedhin/novaseq_pipe/create_files.sh 1 /mnt/home/ngebremedhin/novaseq_pipe/work/fastq
Command exit status:
0
Command output:
(empty)lanes = Channel.from(1..4)
barDir = '/mnt/home/ngebremedhin/outputs/Nextflow/Barcodes'
process processA {
publishDir "${barDir}/fastq/${lane}", mode: 'copy'
input:
val lane from lanes
output:
file("hello_${lane}.txt") into welcomeFiles
script:
println workDir
"""
/mnt/home/ngebremedhin/create_files.sh ${lane} ${barDir}/fastq
"""
}
process processB {
publishDir "${barDir}/fastq"
input:
file x from welcomeFiles
output:
file "${x}.pdf" into finalOut
script:
"""
mv ${x} ${x}.pdf
"""
}#!/bin/bash
for i in {1..10};
do
mkdir -p ${2}/${1}
echo "Hello">${2}/${1}/hello_${1}_${i}.txt;
done--
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.
/mnt/home/ngebremedhin/novaseq_pipe/create_files.sh ${lane} ${workDir}/../../outputs/Nextflow/Barcodes/fastqTo unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
instead oftouch foo.txt
touch /some/path/foo.txt
process foo {output:file 'foo.txt' into foo_ch"""touch \$PWD/foo.txt"""}