Skip to content

Commit

Permalink
more fixes and flu stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Sep 26, 2024
1 parent 0e31cb8 commit cea39bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipes/WDL/tasks/tasks_ncbi.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ task biosample_to_genbank {
if row['host'] == 'bovine_milk':
row['host'] = 'Cattle'
# override geo_loc_name if food_origin exists
if 'food_origin' in row:
if row.get('food_origin'):
row['geo_loc_name'] = row['food_origin']
with open("~{base}.genbank.src", 'wt') as outf_smt:
Expand Down Expand Up @@ -801,9 +801,9 @@ task biosample_to_genbank {
outrow['isolate'] = outrow['isolate'][len(outrow['organism']):].strip()
# some fields are not allowed to be empty
if not outrow['geo_loc_name']:
if not outrow.get('geo_loc_name'):
outrow['geo_loc_name'] = 'missing'
if not outrow['host']:
if not outrow.get('host'):
outrow['host'] = 'not applicable'
# custom db_xref/taxon
Expand Down

0 comments on commit cea39bb

Please sign in to comment.