Skip to content

Commit

Permalink
patch for art's tweet about slashes breaking paths
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed Jun 20, 2021
1 parent 7620ff0 commit e2c9c51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pangolin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_program = "pangolin"
__version__ = "3.1.3"
__version__ = "3.1.4"

__all__ = ["pangolearn",
"utils"]
Expand Down
7 changes: 4 additions & 3 deletions pangolin/scripts/pangolearn.smk
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,10 @@ rule generate_report:
scorpio_lineage = new_row["scorpio_call"].split("+")[0].split("-like")[0]
expanded_scorpio_lineage = expand_alias(scorpio_lineage, alias_dict)
expanded_pango_lineage = expand_alias(row['lineage'], alias_dict)
if expanded_scorpio_lineage and expanded_pango_lineage and not expanded_pango_lineage.startswith(expanded_scorpio_lineage):
new_row["note"] += f'; scorpio replaced lineage assignment {row["lineage"]}'
new_row['lineage'] = scorpio_lineage
if '/' not in scorpio_lineage:
if expanded_scorpio_lineage and expanded_pango_lineage and not expanded_pango_lineage.startswith(expanded_scorpio_lineage):
new_row["note"] += f'; scorpio replaced lineage assignment {row["lineage"]}'
new_row['lineage'] = scorpio_lineage

writer.writerow(new_row)

Expand Down

0 comments on commit e2c9c51

Please sign in to comment.