aboutsummaryrefslogtreecommitdiff
path: root/scripts/create_sra_metadata
diff options
context:
space:
mode:
authorAndreaGuarracino2020-11-13 22:41:47 +0100
committerAndreaGuarracino2020-11-13 22:41:47 +0100
commit0d7f1bc0000df215e85f0da1143703e311328dea (patch)
tree2615907b92ca783512209cfa7eef629de4fc9ce3 /scripts/create_sra_metadata
parentcb94ded3ea7d28a81ab41fc88ffd291bc0f8c079 (diff)
downloadbh20-seq-resource-0d7f1bc0000df215e85f0da1143703e311328dea.tar.gz
bh20-seq-resource-0d7f1bc0000df215e85f0da1143703e311328dea.tar.lz
bh20-seq-resource-0d7f1bc0000df215e85f0da1143703e311328dea.zip
fix check date sra script
Diffstat (limited to 'scripts/create_sra_metadata')
-rw-r--r--scripts/create_sra_metadata/create_sra_metadata.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/create_sra_metadata/create_sra_metadata.py b/scripts/create_sra_metadata/create_sra_metadata.py
index 85d4e9e..f5dc0c8 100644
--- a/scripts/create_sra_metadata/create_sra_metadata.py
+++ b/scripts/create_sra_metadata/create_sra_metadata.py
@@ -290,10 +290,10 @@ for i, EXPERIMENT_PACKAGE in enumerate(EXPERIMENT_PACKAGE_SET):
year, month, day = [int(x) for x in info_for_yaml_dict['sample']['collection_date'].split('-')]
collection_date_in_yaml = datetime(year, month, day)
-
- if accession not in not_created_accession_dict:
- not_created_accession_dict[accession] = []
- not_created_accession_dict[accession].append('collection_date too early')
+ if collection_date_in_yaml < min_acceptable_collection_date:
+ if accession not in not_created_accession_dict:
+ not_created_accession_dict[accession] = []
+ not_created_accession_dict[accession].append('collection_date too early')
if 'sample_sequencing_technology' not in info_for_yaml_dict['technology']:
# print(accession_version, ' - technology not found')