Skip to content

Commit

Permalink
fix: prettify rule put option arg at end with no line break
Browse files Browse the repository at this point in the history
  • Loading branch information
rroutsong committed Dec 11, 2024
1 parent 83bb23c commit b515b64
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# ~~~~
# Generally applicable quality control rules
from scripts.common import allocated
from textwrap import dedent
from os.path import join


Expand Down Expand Up @@ -273,14 +274,19 @@ rule deeptools_fingerprint:
ext = "" if paired_end else "-e 200",
threads: int(allocated("threads", "deeptools_fingerprint", cluster)),
shell:
"""
dedent("""
module load {params.deeptoolsver}
if [ ! -d "{params.parent_dir}" ]; then mkdir "{params.parent_dir}"; fi
\
plotFingerprint -b {input} --labels {params.labels} -p {threads} --skipZeros \\
--outQualityMetrics {output.metrics} --plotFile {output.image} --outRawCounts {output.raw} \\
{params.ext}
"""
plotFingerprint \\
-b {input} \\
--labels {params.labels} \\
-p {threads} \\
--skipZeros \\
--outQualityMetrics {output.metrics} \\
--plotFile {output.image} \\
--outRawCounts {output.raw} {params.ext}
""")


rule deeptools_gene_all:
Expand Down

0 comments on commit b515b64

Please sign in to comment.