Skip to content

Commit

Permalink
explicitly check p1 and p2 not misassigned
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed Feb 23, 2021
1 parent 1763ac0 commit 63a94b3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pangolin/scripts/pangolearn.smk
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@ rule overwrite:
new_row["probability"] = "1.0"
new_row["lineage"] = "P.2"

writer.writerow(new_row)
elif row["lineage"] =="P.2" and row["taxon"] not in p2:
new_row = row

new_row["probability"] = "1.0"
new_row["lineage"] = "B.1.1.28"

writer.writerow(new_row)
elif row["taxon"] in p1:
new_row = row
Expand All @@ -310,6 +317,13 @@ rule overwrite:
new_row["probability"] = "1.0"
new_row["lineage"] = "P.1"

writer.writerow(new_row)
elif row["lineage"] =="P.1" and row["taxon"] not in p1:
new_row = row

new_row["probability"] = "1.0"
new_row["lineage"] = "B.1.1.28"

writer.writerow(new_row)
else:
writer.writerow(row)
Expand Down
1 change: 1 addition & 0 deletions pangolin/scripts/report_classes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import datetime as dt
from collections import Counter

Expand Down
1 change: 1 addition & 0 deletions pangolin/scripts/report_results.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import imp
import argparse
from collections import defaultdict
Expand Down

0 comments on commit 63a94b3

Please sign in to comment.