Skip to content

Commit

Permalink
tidy up host metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Aug 12, 2021
1 parent 1ed06ec commit 87e165c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Binary file modified results/sqlite_db/yersinia_pestis_db.sqlite
Binary file not shown.
12 changes: 12 additions & 0 deletions workflow/scripts/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@
# 23. Host Human
# 24. Sequencing Technology
# 25. Assembly Method
# 26. Host Raw
# 27. Host Order

output_headers_main = [
"sample",
Expand Down Expand Up @@ -155,6 +157,8 @@
"host_human",
"sequencing_technology",
"assembly_method",
"host_raw",
"host_order",
]

output_ref_vals = [
Expand Down Expand Up @@ -183,6 +187,8 @@
"Human",
"NA",
"NA",
"Human",
"Human",
]


Expand Down Expand Up @@ -278,6 +284,8 @@
"NA", # host human [22]
"NA", # sequencing technology [23]
"NA", # assembly method [24]
"NA", # host human [25]
"NA", # host human [26]
]

if result:
Expand Down Expand Up @@ -396,8 +404,12 @@
# split on semicolon
split_host = host.split(";")
# human status as a binary is the second element
host_raw = split_host[0]
host_human = split_host[1]
host_order = split_host[2]
output_main_vals[22] = host_human
output_main_vals[25] = host_raw
output_main_vals[26] = host_order

# Sequencing technology, try with assembly result
sequencing_technology = result[8]
Expand Down

0 comments on commit 87e165c

Please sign in to comment.