aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreaGuarracino2020-07-12 15:58:29 +0200
committerAndreaGuarracino2020-07-12 15:58:29 +0200
commitbb90f06da570624952d4b7001ee37fc7018e3a7d (patch)
tree96999429784878cad416f203fa4619369901a5c0
parent2eab71a70b8630649303a9319e1baf9fa06f8ab4 (diff)
downloadbh20-seq-resource-bb90f06da570624952d4b7001ee37fc7018e3a7d.tar.gz
bh20-seq-resource-bb90f06da570624952d4b7001ee37fc7018e3a7d.tar.lz
bh20-seq-resource-bb90f06da570624952d4b7001ee37fc7018e3a7d.zip
added a suffix to distinguish which script created the error/warning files
-rw-r--r--scripts/create_sra_metadata/create_sra_metadata.py4
-rwxr-xr-xscripts/download_genbank_data/from_genbank_to_fasta_and_yaml.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/create_sra_metadata/create_sra_metadata.py b/scripts/create_sra_metadata/create_sra_metadata.py
index a31bd36..352a30e 100644
--- a/scripts/create_sra_metadata/create_sra_metadata.py
+++ b/scripts/create_sra_metadata/create_sra_metadata.py
@@ -251,13 +251,13 @@ for i, EXPERIMENT_PACKAGE in enumerate(EXPERIMENT_PACKAGE_SET):
json.dump(info_for_yaml_dict, fw, indent=2)
if len(missing_value_list) > 0:
- path_missing_terms_tsv = 'missing_terms.tsv'
+ path_missing_terms_tsv = 'missing_terms.sra.tsv'
print('Written missing terms in {}'.format(path_missing_terms_tsv))
with open(path_missing_terms_tsv, 'w') as fw:
fw.write('\n'.join(missing_value_list))
if len(not_created_accession_list) > 0:
- path_not_created_accession_tsv = 'not_created_accession.tsv'
+ path_not_created_accession_tsv = 'not_created_accession.sra.tsv'
print('Written not created accession in {}'.format(path_not_created_accession_tsv))
with open(path_not_created_accession_tsv, 'w') as fw:
fw.write('\n'.join(['\t'.join(x) for x in not_created_accession_list]))
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 d5b0ffd..dbebfbb 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
@@ -391,19 +391,19 @@ for path_metadata_xxx_xml in [os.path.join(dir_metadata, name_metadata_xxx_xml)
continue
if len(missing_value_list) > 0:
- path_missing_terms_tsv = 'missing_terms.tsv'
+ path_missing_terms_tsv = 'missing_terms.genbank.tsv'
print('Written missing terms in {}'.format(path_missing_terms_tsv))
with open(path_missing_terms_tsv, 'w') as fw:
fw.write('\n'.join(missing_value_list))
if len(accession_with_errors_list) > 0:
- path_accession_with_errors_tsv = 'accession_with_errors.tsv'
+ path_accession_with_errors_tsv = 'accession_with_errors.genbank.tsv'
print('Written the accession with errors in {}'.format(path_accession_with_errors_tsv))
with open(path_accession_with_errors_tsv, 'w') as fw:
fw.write('\n'.join(accession_with_errors_list))
if len(not_created_accession_list) > 0:
- path_not_created_accession_tsv = 'not_created_accession.tsv'
+ path_not_created_accession_tsv = 'not_created_accession.genbank.tsv'
print('Written not created accession in {}'.format(path_not_created_accession_tsv))
with open(path_not_created_accession_tsv, 'w') as fw:
fw.write('\n'.join(['\t'.join(x) for x in not_created_accession_list]))