Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: added column in overview table for the clear name of the lineage #400

Merged
merged 7 commits into from
Dec 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion workflow/scripts/generate-overview-table.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def register_contig_lengths(assemblies, name):
pangolin_results.shape[0] == 1
), "unexpected number of rows (>1) in pangolin results"
lineage = pangolin_results.loc[0, "lineage"]
scorpio = pangolin_results.loc[0, "scorpio_call"]
if lineage == "None":
pangolin_call = "no strain called"
else:
Expand All @@ -152,7 +153,12 @@ def register_contig_lengths(assemblies, name):
# varcount = f" ({varcount})"
# pangolin_call = f"{lineage}{varcount}"
pangolin_call = f"{lineage}"
data.loc[sample, "Lineage"] = pangolin_call
data.loc[sample, "Pangolin Lineage"] = pangolin_call
if scorpio == "None":
scorpio_call = "no clear name because of missing strain"
else:
scorpio_call = f"{scorpio}"
data.loc[sample, "WHO Label"] = scorpio_call


# add variant calls
Expand Down