BCCDC-PHL / FluViewer

Tool for generating influenza A virus genome sequences from FASTQ data
https://bccdc-phl.github.io/FluViewer/
4 stars 0 forks source link

Analysis fails when attempting to create a scaffolding plot for a segment for which there is no data. #32

Closed dfornika closed 3 months ago

dfornika commented 3 months ago

While making the scaffolding plots, when iterating over all segments here:

https://github.com/BCCDC-PHL/FluViewer/blob/08f1d448d8a8ab90d3ed7936de622990913c77b7/fluviewer/plots.py#L213-L225

...analysis will fail when any of the listed segments is not present as a key in inputs['segment_contigs_alignments'].

Handle that case by logging a message and skipping to the next segment.