Skip to content

Commit

Permalink
if all seqs fail, output updated report
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed May 5, 2021
1 parent 43f20db commit 7ba94a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pangolin/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ def main(sysargs = sys.argv[1:]):

if run == []:
with open(outfile, "w") as fw:
fw.write("taxon,lineage,probability,pangoLEARN_version,status,note\n")
fw.write("taxon,lineage,conflict,pangolin_version,pangoLEARN_version,pango_version,status,note\n")
for record in do_not_run:
desc = record.description.split(" ")
reason = ""
for item in desc:
if item.startswith("fail="):
reason = item.split("=")[1]
fw.write(f"{record.id},None,0,{pangoLEARN.__version__},fail,{reason}\n")
fw.write(f"{record.id},None,NA,{__version__},{pangoLEARN.__version__},PANGO_VERSION,fail,{reason}\n")
print(pfunk.cyan(f'Note: no query sequences have passed the qc\n'))
sys.exit(0)

Expand Down

0 comments on commit 7ba94a8

Please sign in to comment.