I set up an automated pipeline to process fastq files into heavily transformed fasta files. The pipeline applies a series of in-RAM transformations before being written back to disk. One of the steps is a vsearch --derep_fulllength command, and it seems it does not handle empty input gracefully, which breaks my pipeline.
Here is a toy-example:
## long pipeline, sometimes yielding no data
printf "" | \
vsearch \
--derep_fulllength - \
--quiet \
--output dereplicated.fasta
## vsearch stops with an (off-topic?) error message:
# Fatal error: FASTQ input is only allowed with the fastx_uniques command
## dereplicated.fasta is not created
[[ -e "dereplicated.fasta" ]] && \
echo "success" || \
echo "fail"
rm -f dereplicated.fasta
Ideally, one would expect a warning, not a fatal error, and the creation of an empty output file.
This is similar to issue #366
I set up an automated pipeline to process
fastq
files into heavily transformedfasta
files. The pipeline applies a series of in-RAM transformations before being written back to disk. One of the steps is avsearch --derep_fulllength
command, and it seems it does not handle empty input gracefully, which breaks my pipeline.Here is a toy-example:
Ideally, one would expect a warning, not a fatal error, and the creation of an empty output file.