Skip to content

Commit

Permalink
added correct snakemake way to include external parameters from config
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Mar 9, 2024
1 parent 4a22df1 commit d4b06d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions workflow/rules/altsplicing.smk
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ rule spladder:
log:
"logs/{sample}/spladder/{group}_build.log"
params:
confidence = "--confidence {config[altsplicing][confidence]}",
iteration = "--iterations {config[altsplicing][iterations]}",
edgelimit = "--ase-edge-limit {config[altsplicing][edgelimit]}",
confidence=f"""--confidence {config["altsplicing"]["confidence"]}""",
iteration=f"""--iterations {config["altsplicing"]["iterations"]}""",
edgelimit=f"""--ase-edge-limit {config["altsplicing"]["edgelimit"]}"""
shell:
"""
spladder build -b {input.bam} \
Expand All @@ -23,7 +23,7 @@ rule spladder:
{params.edgelimit} \
--qmode all > {log} 2>&1
"""

rule splicing_to_vcf:
input:
"results/{sample}/rnaseq/altsplicing/spladder/{group}"
Expand Down

0 comments on commit d4b06d1

Please sign in to comment.