Skip to content

Commit

Permalink
fix DATE_CURRENT_RUN
Browse files Browse the repository at this point in the history
  • Loading branch information
pmb59 authored Feb 16, 2024
1 parent 93314f5 commit 75ddc11
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions zooma-mappings-wf/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ from snakemake.utils import min_version

min_version("7.32.4")

DATE_CURRENT_RUN=date_current_run

# This workflow updates all ontology mappings in condensed SDRF files, and then
# updates all experiment designs on the current wwwdev tomcat machine (if set)

Expand Down Expand Up @@ -66,7 +68,7 @@ rule remove_aux_files:
rules.check_zooma.output
params:
working_directory=working_dir,
zoomaMappingReport=zooma_mapping_report(date_current_run)
zoomaMappingReport=zooma_mapping_report(DATE_CURRENT_RUN)
output:
temp("{logs_path}/{accession}/remove_aux_files.done")
shell:
Expand Down Expand Up @@ -114,7 +116,7 @@ rule run_condense_sdrf:
prot_idf_path=config['prot_magetabfiles'],
experiment_type=get_exp_type_from_xml,
debugging=config['debugging'],
zoomaMappingReport=zooma_mapping_report(date_current_run)
zoomaMappingReport=zooma_mapping_report(DATE_CURRENT_RUN)
output:
sdrf=expand("{workingdir}/{{accession}}/{{accession}}.condensed-sdrf.tsv", workingdir=working_dir),
done=temp(expand("{logspath}/{{accession}}/run_condense_sdrf.done", logspath=logs_path))
Expand Down Expand Up @@ -291,8 +293,8 @@ rule split_zooma_mapping_report:
input:
get_split_zooma_mapping_report_inputs(ACCESSIONS, logs_path)
params:
split_report_files=get_split_report_files(date_current_run),
zoomaMappingReport=zooma_mapping_report(date_current_run),
split_report_files=get_split_report_files(DATE_CURRENT_RUN),
zoomaMappingReport=zooma_mapping_report(DATE_CURRENT_RUN),
working_directory=working_dir,
accs=get_accessions(working_dir)
output:
Expand Down Expand Up @@ -358,11 +360,11 @@ rule copy_reports_to_targetDir:
params:
mode=config['mode'],
working_directory=working_dir,
zoomaMappingReport=zooma_mapping_report(date_current_run),
zoomaMappingReport=zooma_mapping_report(DATE_CURRENT_RUN),
notifEmail=config['notifEmail'],
previous_run_date=config['previousRunDate'],
dest=config['dest'],
current_run=date_current_run
current_run=DATE_CURRENT_RUN
output:
"{logs_path}/copy_reports_to_targetDir.done"
shell:
Expand Down

0 comments on commit 75ddc11

Please sign in to comment.