KwanLab / Autometa

Autometa: Automated Extraction of Genomes from Shotgun Metagenomes
https://autometa.readthedocs.io
Other
40 stars 15 forks source link

Add error handling strategies for nextflow processes #231

Closed evanroyrees closed 2 years ago

evanroyrees commented 2 years ago

Add error handling strategies for nextflow processes

  1. embed_kmers.nf
    • errorStrategy {exitCode in 153 ? "ignore" : "terminate" }
    • Not enough contigs to perform embedding with current parameter settings
  2. binning.nf
    • errorStrategy { task.exitStatus in 204 ? 'ignore' : 'terminate' }
    • No markers were annotated for contigs in the table
  3. unclustered_recruitment.nf
    • errorStrategy { task.exitStatus in 204 ? 'ignore' : 'terminate' }
    • No markers were annotated for contigs in the table
  4. markers.nf
    • errorStrategy { task.exitStatus in 204 ? 'ignore' : 'terminate' }
    • No markers in kingdom.hmmscan.tsv pass cutoff thresholds
codecov[bot] commented 2 years ago

Codecov Report

Merging #231 (3c1874b) into dev (1b70a6a) will increase coverage by 0.40%. The diff coverage is 68.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #231      +/-   ##
==========================================
+ Coverage   27.23%   27.64%   +0.40%     
==========================================
  Files          45       45              
  Lines        5331     5336       +5     
==========================================
+ Hits         1452     1475      +23     
+ Misses       3879     3861      -18     
Flag Coverage Δ
unittests 27.64% <68.75%> (+0.40%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
autometa/common/markers.py 90.66% <50.00%> (-3.62%) :arrow_down:
autometa/binning/recursive_dbscan.py 86.47% <80.00%> (+2.04%) :arrow_up:
autometa/binning/unclustered_recruitment.py 91.93% <0.00%> (+8.60%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1b70a6a...3c1874b. Read the comment docs.