From 58b0efd8d912524fa509befac45628f81418d76a Mon Sep 17 00:00:00 2001 From: tcezard Date: Tue, 5 Nov 2024 08:10:26 +0000 Subject: [PATCH] search the eload folder during QC --- eva_submission/submission_qc_checks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eva_submission/submission_qc_checks.py b/eva_submission/submission_qc_checks.py index 98ac0b6..eb34b9b 100644 --- a/eva_submission/submission_qc_checks.py +++ b/eva_submission/submission_qc_checks.py @@ -115,6 +115,9 @@ def __init__(self, eload_number, config_object: EloadConfig = None): self.project_accession = self.eload_cfg.query('brokering', 'ena', 'PROJECT') self.path_to_data_dir = Path(cfg['projects_dir'], self.project_accession) self.path_to_logs_dir = os.path.join(self.path_to_data_dir, '00_logs') + # If the project folder does not exist then it is located in the eload folder + if not os.path.exists(self.path_to_logs_dir): + self.path_to_logs_dir = os.path.join(self.eload_dir, '00_logs') self.taxonomy = self.eload_cfg.query('submission', 'taxonomy_id') self.analyses = self.eload_cfg.query('brokering', 'analyses')