aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Guarracino2020-07-09 00:39:48 +0200
committerGitHub2020-07-09 00:39:48 +0200
commit6207501c9b504936a61f232d33344e04350b0aed (patch)
tree5c765b0ba6aec27691778f96fa788170b572c705
parentbe87a630a614657a7e2ca941724716be46b93b34 (diff)
downloadbh20-seq-resource-6207501c9b504936a61f232d33344e04350b0aed.tar.gz
bh20-seq-resource-6207501c9b504936a61f232d33344e04350b0aed.tar.lz
bh20-seq-resource-6207501c9b504936a61f232d33344e04350b0aed.zip
fixed bug that lead to invalid sample_sequencing_technology values
-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: