spades icon indicating copy to clipboard operation
spades copied to clipboard

Pigz error while using same file name with paired end reads

Open redsnic opened this issue 3 years ago • 0 comments

I know this might be a very minor issue but I did find out that, when running SPAdes by using the same name for the two fastq for the paired end reads, the program fails returning the following error:

== Compressing corrected reads (with pigz)
== Files to compress: ['/home/redsnic/WGA_batteri/test_dir/144/SPAdes/corrected/filtered_reads.00.0_0.cor.fastq', '/home/redsnic/WGA_batteri/test_dir/144/SPAdes/corrected/filtered_reads.00.0_0.cor.fastq', '/home/redsnic/WGA_batteri/test_dir/144/SPAdes/corrected/remove_bad_reads__unpaired.00.0_0.cor.fastq']
pigz: skipping: /home/redsnic/WGA_batteri/test_dir/144/SPAdes/corrected/filtered_reads.00.0_0.cor.fastq does not exist
== Error ==  system call for: "['/usr/bin/pigz', '-f', '-7', '-p', '16', '/home/redsnic/WGA_batteri/test_dir/144/SPAdes/corrected/filtered_reads.00.0_0.cor.fastq']" finished abnormally, OS return value: 1
In case you have troubles running SPAdes, you can write to [email protected]
or report an issue on our GitHub repository github.com/ablab/spades
Please provide us with params.txt and spades.log files from the output directory.

Renaming the first file results instead in a successful execution.

In detail, I did run the following commands:

# this fails
spades.py -1 /home/redsnic/WGA_batteri/test_dir/144/remove_bad_reads_fwd/filtered_reads.fastq -2 /home/redsnic/WGA_batteri/test_dir/144/remove_bad_reads_rev/filtered_reads.fastq -o /home/redsnic/WGA_batteri/test_dir/144/SPAdes --careful

# while, after changing the file name everything works
mv /home/redsnic/WGA_batteri/test_dir/144/remove_bad_reads_fwd/filtered_reads.fastq /home/redsnic/WGA_batteri/test_dir/144/remove_bad_reads_fwd/filtered_reads2.fastq

# this works
spades.py -1 /home/redsnic/WGA_batteri/test_dir/144/remove_bad_reads_fwd/filtered_reads2.fastq -2 /home/redsnic/WGA_batteri/test_dir/144/remove_bad_reads_rev/filtered_reads.fastq -o /home/redsnic/WGA_batteri/test_dir/144/SPAdes --careful

I did test the program only with these options.

Thank you in advance, let me know if you need more information.

redsnic avatar May 16 '21 19:05 redsnic