-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathSnakefile
32 lines (24 loc) · 1.07 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
path_to_fauna = '../fauna'
# Use default configuration values. Override with Snakemake's --configfile/--config options.
configfile: "defaults/config.yaml"
SUPPORTED_DATA_SOURCES = ["fauna", "ncbi", "andersen-lab", "joined-ncbi"]
wildcard_constraints:
segment = "|".join(config["segments"]),
data_source = "|".join(SUPPORTED_DATA_SOURCES)
rule all:
# As of 2024-05-16 the default ingest only ingests data from fauna
input:
sequences=expand("fauna/results/sequences_{segment}.fasta", segment=config["segments"]),
metadata="fauna/results/metadata.tsv",
rule upload_all:
# As of 2024-05-16 the default upload only uploads data from fauna
input:
sequences=expand("fauna/s3/sequences_{segment}.done", segment=config["segments"]),
metadata="fauna/s3/metadata.done",
include: "rules/ingest_fauna.smk"
include: "rules/merge_segment_metadata.smk"
include: "rules/upload_to_s3.smk"
# Allow users to import custom rules provided via the config.
if "custom_rules" in config:
for rule_file in config["custom_rules"]:
include: rule_file