From 72e77fda220e939676d10fd8505fd15517e99702 Mon Sep 17 00:00:00 2001 From: AndreaGuarracino Date: Sun, 15 Nov 2020 11:36:25 +0100 Subject: added a check on host_age --- scripts/create_sra_metadata/create_sra_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/create_sra_metadata/create_sra_metadata.py') diff --git a/scripts/create_sra_metadata/create_sra_metadata.py b/scripts/create_sra_metadata/create_sra_metadata.py index df77daf..83a1a60 100644 --- a/scripts/create_sra_metadata/create_sra_metadata.py +++ b/scripts/create_sra_metadata/create_sra_metadata.py @@ -179,7 +179,7 @@ for i, EXPERIMENT_PACKAGE in enumerate(EXPERIMENT_PACKAGE_SET): elif TAG_text in ['host_age', 'host age']: if is_integer(VALUE_text): host_age = is_integer(VALUE_text) - if host_age > 0 and host_age < 110: + if host_age >= 0 and host_age < 110: info_for_yaml_dict['host']['host_age'] = host_age info_for_yaml_dict['host']['host_age_unit'] = 'http://purl.obolibrary.org/obo/UO_0000036' elif TAG_text == 'collected_by': -- cgit v1.2.3