aboutsummaryrefslogtreecommitdiff
path: root/scripts/download_genbank_data
diff options
context:
space:
mode:
authorPjotr Prins2020-07-09 15:11:55 +0200
committerGitHub2020-07-09 15:11:55 +0200
commitedb17e7f7caebfa1e76b21006b1772a33f4f7887 (patch)
tree5c765b0ba6aec27691778f96fa788170b572c705 /scripts/download_genbank_data
parentbe87a630a614657a7e2ca941724716be46b93b34 (diff)
parent6207501c9b504936a61f232d33344e04350b0aed (diff)
downloadbh20-seq-resource-edb17e7f7caebfa1e76b21006b1772a33f4f7887.tar.gz
bh20-seq-resource-edb17e7f7caebfa1e76b21006b1772a33f4f7887.tar.lz
bh20-seq-resource-edb17e7f7caebfa1e76b21006b1772a33f4f7887.zip
Merge pull request #93 from AndreaGuarracino/patch-22
fixed bug that lead to invalid sample_sequencing_technology values
Diffstat (limited to 'scripts/download_genbank_data')
-rwxr-xr-xscripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py b/scripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py
index cb94787..39e401a 100755
--- a/scripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py
+++ b/scripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py
@@ -219,11 +219,10 @@ for path_metadata_xxx_xml in [os.path.join(dir_metadata, name_metadata_xxx_xml)
seq_tec = seq_tec.strip()
if seq_tec in term_to_uri_dict:
seq_tec = term_to_uri_dict[seq_tec]
+ new_seq_tec_list.append(seq_tec)
else:
missing_value_list.append('\t'.join([accession_version, 'sample_sequencing_technology', seq_tec]))
- new_seq_tec_list.append(seq_tec)
-
if len(new_seq_tec_list) > 0:
info_for_yaml_dict['technology']['sample_sequencing_technology'] = [x for x in new_seq_tec_list]
else: