Skip to content
Permalink
Browse files

bugfix: NIID parse

Prevent doubling of flu type if the serum strain name
already includes the flu type
  • Loading branch information...
joverlee521 committed Oct 28, 2019
1 parent 0b56a62 commit 292eadc4eb76e82acf513c0579c5f54fe93efb64
Showing with 2 additions and 1 deletion.
  1. +2 −1 tdb/niid_upload.py
@@ -95,7 +95,8 @@ def parse_niid_matrix_to_tsv(fname, original_path, subtype, assay_type):
# import pdb; pdb.set_trace()
if m:
serum_strain = m.group(1)
serum_strain = flutype + "/" + serum_strain
if not serum_strain.startswith(flutype + "/"):
serum_strain = flutype + "/" + serum_strain
titer = mat[i][j]
source = "niid_%s"%(src_id)
virus_passage = mat[i][2]

0 comments on commit 292eadc

Please sign in to comment.
You can’t perform that action at this time.