BCCDC-PHL / ncov-tools-nf

A nextflow-based workflow for running ncov-tools
2 stars 2 forks source link

Skip negative control check if no negative control sample found #18

Closed dfornika closed 3 years ago

dfornika commented 3 years ago

Occasionally our negative control sample won't make it all the way through our artic pipeline. This seems to usually happen because all reads are filtered out during the dehosting/adapterfiltering/readtrimming stages, so no reads remain to produce an alignment.

When that happens, we get an entry in our config.yaml file like:

negative_control_samples: [""]

...and the pipeline fails.

If no negative control sample is found, omit the negative_control_samples line from the config.yaml