From 6207501c9b504936a61f232d33344e04350b0aed Mon Sep 17 00:00:00 2001 From: Andrea Guarracino Date: Thu, 9 Jul 2020 00:39:48 +0200 Subject: fixed bug that lead to invalid sample_sequencing_technology values --- scripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3