mhoban / rainbow_bridge

GNU General Public License v3.0
5 stars 2 forks source link

Nextflow fails at the dereplication stage when no primer matches are found by ngsfilter #33

Closed cajwalsh closed 11 months ago

cajwalsh commented 11 months ago

Following up on our conversation from earlier, you mentioned it would be nice to program in a graceful fail when there are no sequences that pass the primer check in ngsfilter. I decided to run eDNAFlow on a COI library using a 12S marker to check if some 12S amplicon contamination might have ended up in the sequencing run too. After making it through ngsfilter with empty files, eDNAFlow got through "merging" all "files" before vsearch couldn't find any fasta sequences to start dereplicating. If you want the eDNAFlow files/folder/output, they're on kinilau: /home/cajw/working/eDNA/contam_tests/NIUE

mhoban commented 11 months ago

It looks like in nextflow there's no way to fail in a way that I would consider graceful. I can provide a better message, but there's no way to avoid seeing the whole ugly error screen including the script contents and everything.

image

You can see in the "command error" section, it's now more informative, but there's still all that other garbage.