ktmeaton / ncov-recombinant

Reproducible workflow for SARS-CoV-2 recombinant sequence detection.
MIT License
18 stars 2 forks source link

IndexError: list index out of range #241

Open ktmeaton opened 1 year ago

ktmeaton commented 1 year ago

Error in rule sc2rf_recombinants

File "ncov-recombinant/sc2rf/postprocess.py", line 1334 in main
l_node = [c for c in tree.find_clades(l)][0]
IndexError: list index out of range

I think the solution is to use if else statements to check whether we actually found the lineage in the tree.