I tried to run the pipeline (<https://github.com/M...
# tools
y
I tried to run the pipeline (https://github.com/MaestSi/MetONTIIME.git) using the following command:
Copy code
nextflow -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:
Copy code
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:
Copy code
[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:
Copy code
//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.
j
Sorry as this is not an nf-core pipeline we can't provide support as we don't know exactly what it is/how it works... It's best to ask on the GitHub issues of the pipelines repository
y
Ok. Thank you for letting me know. I will post in the github instead.
👍 1