Skip to content

Commit

Permalink
script: add bug fix to sc2rf postprocess for #231
Browse files Browse the repository at this point in the history
  • Loading branch information
Katherine Eaton committed Feb 22, 2023
1 parent 403777a commit 78696b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sc2rf/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,11 @@ def main(

# Don't want to report recombinants as parents
# UNLESS, the parental clade is a recombinant (ex. XBB)
while max_lineage.startswith("X") or max_lineage == "Unassigned":
while (
max_lineage is None
or max_lineage.startswith("X")
or max_lineage == "Unassigned"
):

# Allow the max_lineage to be recombinant if clade is also
if max_lineage.startswith("X") and parent_clade_is_recombinant:
Expand Down

0 comments on commit 78696b3

Please sign in to comment.