Skip to content

Commit 658c232

Browse files
authored
Merge pull request #16 from nextstrain/add-conda-env
Add Conda environment and use in most rules
2 parents a34b49b + 1ab0e32 commit 658c232

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Snakefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ rule index_sequences:
1919
sequences = input_fasta
2020
output:
2121
sequence_index = "results/sequence_index.tsv"
22+
conda: "envs/nextstrain.yaml"
2223
shell:
2324
"""
2425
augur index \
@@ -45,6 +46,7 @@ rule filter:
4546
group_by = "country year month",
4647
sequences_per_group = 20,
4748
min_date = 2012
49+
conda: "envs/nextstrain.yaml"
4850
shell:
4951
"""
5052
augur filter \
@@ -69,6 +71,7 @@ rule align:
6971
reference = reference
7072
output:
7173
alignment = "results/aligned.fasta"
74+
conda: "envs/nextstrain.yaml"
7275
shell:
7376
"""
7477
augur align \
@@ -84,6 +87,7 @@ rule tree:
8487
alignment = rules.align.output.alignment
8588
output:
8689
tree = "results/tree_raw.nwk"
90+
conda: "envs/nextstrain.yaml"
8791
shell:
8892
"""
8993
augur tree \
@@ -111,6 +115,7 @@ rule refine:
111115
coalescent = "opt",
112116
date_inference = "marginal",
113117
clock_filter_iqd = 4
118+
conda: "envs/nextstrain.yaml"
114119
shell:
115120
"""
116121
augur refine \
@@ -135,6 +140,7 @@ rule ancestral:
135140
node_data = "results/nt_muts.json"
136141
params:
137142
inference = "joint"
143+
conda: "envs/nextstrain.yaml"
138144
shell:
139145
"""
140146
augur ancestral \
@@ -152,6 +158,7 @@ rule translate:
152158
reference = reference
153159
output:
154160
node_data = "results/aa_muts.json"
161+
conda: "envs/nextstrain.yaml"
155162
shell:
156163
"""
157164
augur translate \
@@ -170,6 +177,7 @@ rule traits:
170177
node_data = "results/traits.json",
171178
params:
172179
columns = "region country"
180+
conda: "envs/nextstrain.yaml"
173181
shell:
174182
"""
175183
augur traits \
@@ -194,6 +202,7 @@ rule export:
194202
auspice_config = auspice_config
195203
output:
196204
auspice_json = rules.all.input.auspice_json,
205+
conda: "envs/nextstrain.yaml"
197206
shell:
198207
"""
199208
augur export v2 \

envs/nextstrain.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: nextstrain
2+
channels:
3+
- nextstrain
4+
dependencies:
5+
- nextstrain-base

0 commit comments

Comments
 (0)