Yun Shen
04/17/2025, 5:09 PMnextflow -c test.conf run $INSTALL_DIR/MetONTIIME/metontiime2.nf -profile singularity
where in the test.conf I changed the following parameters to be my own, others are all kept as is in the pipeline's metontiime2.conf:
workDir="/share/pkg.8/metontiime/2.1.0/test"
dbSequencesFasta="16S.fasta
singularity.cacheDir = ".singularity/cacheDir"
resultsDir="/share/pkg.8/metontiime/2.1.0/test/test_result"
ERROR ~ Error executing process > 'concatenateFastq'
Caused by:
Process `concatenateFastq` terminated with an error exit status (1)
Command executed:
mkdir -p /share/pkg.8/metontiime/2.1.0/test/test_result
mkdir -p /share/pkg.8/metontiime/2.1.0/test/test_result/concatenateFastq
cp /share/pkg.8/metontiime/2.1.0/test/*fastq.gz /share/pkg.8/metontiime/2.1.0/test/test_result/concatenateFastq
Command exit status:
1
But I checked indeed the following fastq.gz file is in the current test/ folder:
[yshen16@scc-wa4 test]$ ls -l /share/pkg.8/metontiime/2.1.0/test/*fastq.gz
-rwxr-xr-x 1 yshen16 apps 1357266 Apr 17 12:46 /share/pkg.8/metontiime/2.1.0/test/Zymo-GridION-EVEN-BB-SN_sup_pass_filtered_27F_1492Rw_1000_reads.fastq.gz
The 'concatenateFastq' process definition in metontiime.nf is as below:
//concatenate fastq files
process concatenateFastq {
input:
val workdir
output:
val 'flag_concatenate'
script:
if(params.concatenateFastq)
"""
mkdir -p ${params.resultsDir}
mkdir -p ${params.resultsDir}/concatenateFastq
barcodes_dirs=\$(realpath \$(find $workdir -maxdepth 1 -mindepth 1 | grep \"barcode\"));
echo \$barcodes_dirs
for b in \$barcodes_dirs; do
bn=\$(basename \$b);
f=\$(find \$b | grep \".fastq\");
zless \$f | gzip > ${params.resultsDir}/concatenateFastq/\$bn.fastq.gz;
done
"""
else
"""
mkdir -p ${params.resultsDir}
mkdir -p ${params.resultsDir}/concatenateFastq
cp $workdir/*fastq.gz ${params.resultsDir}/concatenateFastq
"""
}
Please help. I am not quite familar with nextflow and really don't know where has gone wrong. Thank you very much in advance.James Fellows Yates
04/17/2025, 5:12 PMYun Shen
04/17/2025, 5:19 PM