Skip to content

Commit

Permalink
change status from qc_status (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
alethomas authored Apr 13, 2022
1 parent 36deee4 commit 973a88d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion workflow/notebooks/plot-all-strains-pangolin.py.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"\n",
"for f in snakemake.input:\n",
" calls = pd.read_csv(f)\n",
" calls = calls[calls[\"status\"] != \"fail\"]\n",
" calls = calls[calls[\"qc_status\"] != \"fail\"]\n",
" all_calls.append(calls)\n",
"\n",
"all_calls = pd.concat(all_calls)\n",
Expand Down
2 changes: 1 addition & 1 deletion workflow/scripts/aggregate-pangolin-calls-per-stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

pangolin_calls_by_stage = pd.concat(pangolin_calls, axis=0, ignore_index=True)

failed_called = (pangolin_calls_by_stage["status"] == "fail") | (
failed_called = (pangolin_calls_by_stage["qc_status"] == "fail") | (
pangolin_calls_by_stage["lineage"] == "None"
)
pangolin_calls_by_stage.loc[failed_called, "lineage"] = (
Expand Down
2 changes: 1 addition & 1 deletion workflow/scripts/evaluate-strain-call-error.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def load_pangolin_df(i, path):
inplace=True,
)
pangolin_df.drop(
columns=["taxon", "pangoLEARN_version", "status", "note"], inplace=True
columns=["taxon", "pangoLEARN_version", "qc_status", "note"], inplace=True
)
pangolin_df["mix"] = i
return pangolin_df
Expand Down
4 changes: 2 additions & 2 deletions workflow/scripts/summarize-non-cov2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def analyize_pangolin(sm_input, accessions):
pango_df = pd.read_csv(pango_file)
if pango_df.loc[0, "note"] == "seq_len:1":
temp_dict[sample] = "assembly failed"
elif pango_df.loc[0, "status"] == "fail":
elif pango_df.loc[0, "qc_status"] == "fail":
temp_dict[sample] = "is non-sars-cov-2"
elif (
pango_df.loc[0, "status"] == "pass"
pango_df.loc[0, "qc_status"] == "pass"
and pango_df.loc[0, "lineage"] == "None"
):
temp_dict[sample] = "is non-sars-cov-2"
Expand Down

0 comments on commit 973a88d

Please sign in to comment.