aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Guarracino2020-04-30 18:27:07 +0200
committerGitHub2020-04-30 18:27:07 +0200
commit6165495618b9c2ad3ad7b8bd95ed807d022ebf1c (patch)
treef2ec888cbf1cb1ebb0ad13d843aa09263463b040
parent3b69ffa7d7f3b24a393bbf11b9de79a9eb96eac6 (diff)
downloadbh20-seq-resource-6165495618b9c2ad3ad7b8bd95ed807d022ebf1c.tar.gz
bh20-seq-resource-6165495618b9c2ad3ad7b8bd95ed807d022ebf1c.tar.lz
bh20-seq-resource-6165495618b9c2ad3ad7b8bd95ed807d022ebf1c.zip
fixed UO_0000036 for year
-rwxr-xr-xscripts/from_genbank_to_fasta_and_yaml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/from_genbank_to_fasta_and_yaml.py b/scripts/from_genbank_to_fasta_and_yaml.py
index 900f087..6f046ea 100755
--- a/scripts/from_genbank_to_fasta_and_yaml.py
+++ b/scripts/from_genbank_to_fasta_and_yaml.py
@@ -200,7 +200,7 @@ for path_metadata_xxx_xml in [os.path.join(dir_metadata, name_metadata_xxx_xml)
if 'age' in GBQualifier_value_text:
info_for_yaml_dict['host']['host_age'] = int(GBQualifier_value_text_list[2].split('age ')[1])
- info_for_yaml_dict['host']['host_age_unit'] = 'year'
+ info_for_yaml_dict['host']['host_age_unit'] = 'http://purl.obolibrary.org/obo/UO_0000036'
elif GBQualifier_name_text == 'collected_by':
if any([x in GBQualifier_value_text.lower() for x in ['institute', 'hospital', 'city', 'center']]):
info_for_yaml_dict['sample']['collecting_institution'] = GBQualifier_value_text