-
Notifications
You must be signed in to change notification settings - Fork 2
/
Snakefile
67 lines (59 loc) · 2.55 KB
/
Snakefile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
configfile: "config.json"
include: "src/snakefiles/datacollect.snakefile"
include: "src/snakefiles/anatomy.snakefile"
include: "src/snakefiles/gene.snakefile"
include: "src/snakefiles/protein.snakefile"
include: "src/snakefiles/geneprotein.snakefile"
include: "src/snakefiles/diseasephenotype.snakefile"
include: "src/snakefiles/process.snakefile"
include: "src/snakefiles/chemical.snakefile"
include: "src/snakefiles/drugchemical.snakefile"
include: "src/snakefiles/taxon.snakefile"
include: "src/snakefiles/genefamily.snakefile"
include: "src/snakefiles/leftover_umls.snakefile"
include: "src/snakefiles/macromolecular_complex.snakefile"
include: "src/snakefiles/publications.snakefile"
include: "src/snakefiles/reports.snakefile"
include: "src/snakefiles/exports.snakefile"
rule all:
input:
# See rule all_outputs later in this file for how we generate all the outputs.
config['output_directory'] + '/reports/outputs_done',
# reports_done are generated by the rules in src/snakefiles/
config['output_directory'] + '/reports/reports_done',
# Build all the exports.
config['output_directory'] + '/kgx/done',
config['output_directory'] + '/sapbert-training-data/done',
output:
x = config['output_directory'] + '/reports/all_done'
shell:
"echo 'done' >> {output.x}"
rule all_outputs:
input:
config['output_directory'] + '/reports/anatomy_done',
config['output_directory'] + '/reports/chemicals_done',
config['output_directory'] + '/reports/disease_done',
config['output_directory'] + '/reports/gene_done',
config['output_directory'] + '/reports/genefamily_done',
config['output_directory'] + '/reports/geneprotein_done',
config['output_directory'] + '/reports/process_done',
config['output_directory'] + '/reports/protein_done',
config['output_directory'] + '/reports/taxon_done',
config['output_directory'] + '/reports/umls_done',
config['output_directory'] + '/reports/macromolecular_complex_done',
config['output_directory'] + '/reports/drugchemical_done',
config['output_directory'] + '/reports/publications_done',
output:
x = config['output_directory'] + '/reports/outputs_done'
shell:
"echo 'done' >> {output.x}"
rule clean_compendia:
params:
dir=config['output_directory']
shell:
"rm {params.dir}/compendia/*; rm {params.dir}/synonyms/*"
rule clean_downloads:
params:
dir=config['download_directory']
shell:
"rm -rf {params.dir}/*"