Commit 043420cf authored by Jasper Koehorst's avatar Jasper Koehorst
Browse files

sample name from metadata moved to TAG

parent 8635d28a
......@@ -249,7 +249,7 @@ def setup_sample(content):
sample['sample name'] = sample_object['TITLE']
else:
sample['Sample title'] = 'Automatic sample title from SRA ' + sample['Sample identifier']
sample['sample name'] = 'Automatic sample title from SRA ' + sample['Sample identifier']
sample['sample name'] = 'Automatic sample name from SRA ' + sample['Sample identifier']
sample['NCBI taxonomy ID'] = sample_object['SAMPLE_NAME']['TAXON_ID']
......@@ -268,6 +268,8 @@ def setup_sample(content):
for sample_attribute in sample_object['SAMPLE_ATTRIBUTES']['SAMPLE_ATTRIBUTE']:
TAG = sample_attribute['TAG']
VALUE = sample_attribute['VALUE']
if TAG == 'sample name':
TAG = 'TAG sample name'
# Filtering
VALUE = filtering(TAG, VALUE)
sample['attributes'][TAG] = VALUE
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment