Skip to content

Commit

Permalink
Search the ELOAD folder during QC (#228)
Browse files Browse the repository at this point in the history
* search the eload folder during QC

* statistics step uses Simple jobs
  • Loading branch information
tcezard authored Nov 14, 2024
1 parent f423953 commit 12a8656
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions eva_submission/submission_qc_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
{'Job: [FlowJob: [name=calculate-statistics-job]] completed'}
),
'variant-stats': (
{'Job: [FlowJob: [name=variant-stats-job]] launched'},
{'Job: [FlowJob: [name=variant-stats-job]] completed'}
{'Job: [SimpleJob: [name=variant-stats-job]] launched'},
{'Job: [SimpleJob: [name=variant-stats-job]] completed'}
),
'study-stats': (
{'Job: [FlowJob: [name=study-stats-job]] launched'},
{'Job: [FlowJob: [name=study-stats-job]] completed'}
{'Job: [SimpleJob: [name=study-stats-job]] launched'},
{'Job: [SimpleJob: [name=study-stats-job]] completed'}
),
'acc_import': (
{'Job: [SimpleJob: [name=accession-import-job]] launched'},
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit 12a8656

Please sign in to comment.