aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreaGuarracino2020-11-15 11:49:12 +0100
committerAndreaGuarracino2020-11-15 11:49:12 +0100
commit7fc06d04a04a1737ae8b52f2e08c6698a8e5c721 (patch)
treee1b539207aae272bc12895efb50a698d1c2eef3a
parent72e77fda220e939676d10fd8505fd15517e99702 (diff)
downloadbh20-seq-resource-7fc06d04a04a1737ae8b52f2e08c6698a8e5c721.tar.gz
bh20-seq-resource-7fc06d04a04a1737ae8b52f2e08c6698a8e5c721.tar.lz
bh20-seq-resource-7fc06d04a04a1737ae8b52f2e08c6698a8e5c721.zip
fixed typos in the integer cast
-rw-r--r--scripts/create_sra_metadata/create_sra_metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create_sra_metadata/create_sra_metadata.py b/scripts/create_sra_metadata/create_sra_metadata.py
index 83a1a60..eebd9aa 100644
--- a/scripts/create_sra_metadata/create_sra_metadata.py
+++ b/scripts/create_sra_metadata/create_sra_metadata.py
@@ -178,7 +178,7 @@ for i, EXPERIMENT_PACKAGE in enumerate(EXPERIMENT_PACKAGE_SET):
missing_value_list.append('\t'.join([accession, 'host_sex', VALUE_text]))
elif TAG_text in ['host_age', 'host age']:
if is_integer(VALUE_text):
- host_age = is_integer(VALUE_text)
+ host_age = int(VALUE_text)
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'