I have a following nextflow script which runs a tool perf on all the split fastq files located in the below mentioned directory. When I run the script I get the following error:
*Error executing process > 'perf (29)'
Caused by:
Process `perf (29)` terminated with an error exit status (1)
Command executed:
/proj/perf/bin/PERF -i Condition_R1paired.part_016.fastq -o Condition_R1paired.part_016.tsv --format fastq -m 1 -M 6 -u repeat_units.txt
Command exit status:
1
Command output:
(empty)
Command error:
Units file specified is not found. Please provide a valid file
Work dir:
/proj/perf/work/57/c9208b00b8c5c82c3f1fdf6c7d0f07
*Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script* file named `.command.sh`**
This is the script
params.fastq_dir = "/proj/split_fastq/*.fastq"
params.outdir = '/proj/work/output'
fastq_file_index=Channel.fromPath(params.fastq_dir, checkIfExists: true ).map { it -> [it.baseName, it] }
process perf {
publishDir("${params.outdir}", mode: 'copy')
input:
tuple val(file_name), path(fastq_file)
output:
path "${file_name}.tsv"
script:
"""
/proj/perf/bin/PERF -i ${fastq_file} -o ${file_name}.tsv --format fastq -m 1 -M 6 -u repeat_units.txt
"""
}
workflow {
perf(fastq_file_index).view()
}
Any tip on suspected error and potential fix is welcome, I am guessing the repeat_units.txt cannot be shared concurrently with all the nextflow processes? In that case how do I share a file with multiple processes? Also any pointers on improving the code is welcome as I am new to nextflow. Thanks