Skip to content

Commit

Permalink
Merge pull request #489 from broadinstitute/dp-sra_fetch-fix
Browse files Browse the repository at this point in the history
Fetch_SRA_to_BAM - tolerate no isolate defined
  • Loading branch information
dpark01 authored Sep 10, 2023
2 parents 7707958 + c429d92 commit 752cdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipes/WDL/tasks/tasks_ncbi_tools.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ task Fetch_SRA_to_BAM {
biosample['accession'] = meta['EXPERIMENT_PACKAGE_SET']['EXPERIMENT_PACKAGE']['SAMPLE']['IDENTIFIERS']['EXTERNAL_ID']['content']
biosample['message'] = 'Successfully loaded'
biosample['bioproject_accession'] = meta['EXPERIMENT_PACKAGE_SET']['EXPERIMENT_PACKAGE']['STUDY']['IDENTIFIERS']['EXTERNAL_ID']['content']
biosample['sample_name'] = biosample['isolate']
biosample['sample_name'] = biosample.get('isolate', biosample.get('Sample Name', biosample.get('strain', '')))
for k,v in biosample.items():
if v == 'not provided':
biosample[k] = ''
Expand Down

0 comments on commit 752cdbf

Please sign in to comment.