genomic-medicine-sweden / gms-artic

A nextflow pipeline with a GMS touch for running the ARTIC network's fieldbioinformatics tools (https://github.com/artic-network/fieldbioinformatics).
GNU Affero General Public License v3.0
9 stars 6 forks source link

Handle insufficent resources for samtools mpileup #3

Open sylvinite opened 3 years ago

sylvinite commented 3 years ago

What needs to be done: Samtools mpileup may softcrash and provide incorrect consensus data GMS-artic needs to detect this, interupt the run and throw an error.

Suggestions on how to get it done: Check the mpileup log for crash information? Otherwise evaluate the consensus file for poly-nucleotide tails

What are the arguments for getting it done: The error breaks results and is currently undetectable. If we don't solve this, we may never trim down the amount of resources allocated

Task is considered finished when: Run the self-test with minimal resources on the testdata. This should cause the error, trigger the interupt and throw the error