-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom_rules.smk
37 lines (30 loc) · 1.13 KB
/
custom_rules.smk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""Custom rules used in the ``snakemake`` pipeline.
This file is included by the pipeline ``Snakefile``.
"""
rule spatial_distances:
"""Get spatial distances from PDB."""
output:
csv="results/spatial_distances/7tov.csv",
pdb="results/spatial_distances/7tov.pdb",
params:
url=lambda _, output: os.path.join(
"https://files.rcsb.org/download",
os.path.basename(output.pdb),
),
target_chains=["A", "B", "C"],
log:
log="results/logs/spatial_distances.txt",
conda:
os.path.join(config["pipeline_path"], "environment.yml")
script:
"scripts/spatial_distances.py"
# Files (Jupyter notebooks, HTML plots, or CSVs) that you want included in
# the HTML docs should be added to the nested dict `docs`:
docs["Additional analysis-specific files"] = {
"Data files": {
"Reference to sequential site-numbering map": config["site_numbering_map"],
},
}
# If you want to make other output files from your rules target files for
# the pipeline, add them to `other_target_files` list
other_target_files.append(rules.spatial_distances.output.pdb)