Skip to content

Commit

Permalink
fix(pipeline): only make hub if create == True
Browse files Browse the repository at this point in the history
  • Loading branch information
alsmith151 committed Nov 15, 2023
1 parent 24dbad7 commit 9a79f0e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions capcruncher/pipeline/workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ snakemake.utils.min_version('7.19.1')


configfile: "capcruncher_config.yml"


container: "library://asmith151/capcruncher/capcruncher:latest"


Expand Down Expand Up @@ -73,6 +75,7 @@ PERFORM_DIFFERENTIAL_ANALYSIS = (
PERFORM_PLOTTING = capcruncher.pipeline.utils.can_perform_plotting(config)
PERFORM_BINNING = capcruncher.pipeline.utils.can_perform_binning(config)
REGENERATE_FASTQ = config["analysis"].get("regenerate_fastq", False)
CREATE_UCSC_HUB = config["hub"].get("create", False)

## Pipeline variables
ASSAY = config["analysis"]["method"]
Expand Down Expand Up @@ -120,7 +123,7 @@ rule all:
sample=SAMPLE_NAMES,
),
hub=rules.create_ucsc_hub.output[0]
if ANALYSIS_METHOD in ["capture", "tri"]
if ANALYSIS_METHOD in ["capture", "tri"] and CREATE_UCSC_HUB
else [],
differential=expand(
"capcruncher_output/results/differential/{viewpoint}",
Expand All @@ -138,7 +141,9 @@ rule all:
"capcruncher_output/results/{sample}/{sample}_{read}.fastq.gz",
sample=SAMPLE_NAMES,
read=["1", "2"],
) if REGENERATE_FASTQ else [],
)
if REGENERATE_FASTQ
else [],


onerror:
Expand Down

0 comments on commit 9a79f0e

Please sign in to comment.