aboutsummaryrefslogtreecommitdiff
path: root/scripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py')
-rwxr-xr-xscripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py2
1 files changed, 2 insertions, 0 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 8ef76e1..8f765d7 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
@@ -412,6 +412,8 @@ for path_metadata_xxx_xml in [os.path.join(dir_metadata, name_metadata_xxx_xml)
not_created_accession_dict[accession_version].append('host_species not found')
if len(GBSeq_sequence.text) < min_len_to_count:
+ if accession_version not in not_created_accession_dict:
+ not_created_accession_dict[accession_version] = []
not_created_accession_dict[accession_version].append('sequence shorter than {} bp'.format(min_len_to_count))
if accession_version not in not_created_accession_dict: