-
Notifications
You must be signed in to change notification settings - Fork 27
/
upload.yaml
216 lines (209 loc) · 7.57 KB
/
upload.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
custom_rules:
- profiles/upload/upload.smk
s3_dst: "s3://nextstrain-data-private/files/workflows/seasonal-flu"
data_source: fauna
fauna_fasta_fields:
- strain
- virus
- locus
- isolate_id
- accession
- collection_date
- submission_date
- region
- country
- division
- location
- passage_category
- originating_lab
- submitting_lab
- age
- gender
- gisaid_strain
fasta_fields:
- strain
- virus
- segment
- gisaid_epi_isl
- accession
- date
- date_submitted
- region
- country
- division
- location
- passage_category
- originating_lab
- submitting_lab
- age
- gender
- gisaid_strain
prettify_fields:
- region
- country
- division
- location
- originating_lab
- submitting_lab
lat-longs: "config/lat_longs.tsv"
segments:
- ha
- na
- pb2
- pb1
- pa
- np
- mp
- ns
tree:
method: iqtree
tree-builder-args: "'-ninit 10 -n 4 -czb -nt AUTO'"
override_default_args: true
submission_date_field: date_submitted
recency:
date_bins: [7, 30, 90]
date_bin_labels: ["last week", "last month", "last quarter"]
upper_bin_label: older
builds:
h1n1pdm_2y:
lineage: h1n1pdm
reference: "config/h1n1pdm/{segment}/reference.fasta"
annotation: "config/h1n1pdm/{segment}/genemap.gff"
tree_exclude_sites: "config/h1n1pdm/{segment}/exclude-sites.txt"
clades: "config/h1n1pdm/ha/clades.tsv"
auspice_config: "config/h1n1pdm/auspice_config.json"
min_date: "2Y"
reference_min_date: "8Y"
include: "config/h1n1pdm/reference_strains.txt"
exclude: "config/h1n1pdm/outliers.txt"
vaccines: "config/h1n1pdm/vaccine.json"
titer_collections:
- name: who_ferret_cell_hi
data: "data/h1n1pdm/who_ferret_cell_hi_titers.tsv"
- name: who_ferret_egg_hi
data: "data/h1n1pdm/who_ferret_egg_hi_titers.tsv"
- name: who_human_cell_hi
data: "data/h1n1pdm/who_human_cell_hi_titers.tsv"
- name: who_mouse_cell_hi
data: "data/h1n1pdm/who_mouse_cell_hi_titers.tsv"
- name: cdc_ferret_cell_hi
data: "data/h1n1pdm/cdc_ferret_cell_hi_titers.tsv"
- name: cdc_ferret_egg_hi
data: "data/h1n1pdm/cdc_ferret_egg_hi_titers.tsv"
- name: crick_ferret_cell_hi
data: "data/h1n1pdm/crick_ferret_cell_hi_titers.tsv"
- name: crick_ferret_egg_hi
data: "data/h1n1pdm/crick_ferret_egg_hi_titers.tsv"
- name: niid_ferret_cell_hi
data: "data/h1n1pdm/niid_ferret_cell_hi_titers.tsv"
- name: niid_ferret_egg_hi
data: "data/h1n1pdm/niid_ferret_egg_hi_titers.tsv"
- name: vidrl_ferret_cell_hi
data: "data/h1n1pdm/vidrl_ferret_cell_hi_titers.tsv"
- name: vidrl_ferret_egg_hi
data: "data/h1n1pdm/vidrl_ferret_egg_hi_titers.tsv"
subsamples: &representative-subsampling-scheme
regions_except_europe:
filters: --query "(passage_category != 'egg') & (region != 'Europe') & (ha == True) & (na == True)" --group-by region year month --subsample-max-sequences 1800 --min-date {min_date} --exclude {exclude}
priorities: "titers"
europe:
filters: --query "(passage_category != 'egg') & (region == 'Europe') & (ha == True) & (na == True)" --group-by country year month --subsample-max-sequences 200 --min-date {min_date} --exclude {exclude}
priorities: "titers"
context:
filters: --query "(passage_category != 'egg')" --group-by region year --subsample-max-sequences 300 --max-date 2020-03-01 --min-date 2016-01-01 --exclude {exclude}
references:
filters: --query "(passage_category != 'egg') & (is_reference == True)" --min-date {reference_min_date}
h3n2_2y:
lineage: "h3n2"
reference: "config/h3n2/{segment}/reference.fasta"
annotation: "config/h3n2/{segment}/genemap.gff"
tree_exclude_sites: "config/h3n2/{segment}/exclude-sites.txt"
clades: "config/h3n2/ha/emerging_clades.tsv"
auspice_config: "config/h3n2/auspice_config_fitness.json"
vaccines: "config/h3n2/vaccine.json"
min_date: "2Y"
reference_min_date: "8Y"
include: "config/h3n2/reference_strains.txt"
exclude: "config/h3n2/outliers.txt"
titer_collections:
- name: who_ferret_cell_fra
data: "data/h3n2/who_ferret_cell_fra_titers.tsv"
- name: who_ferret_egg_fra
data: "data/h3n2/who_ferret_egg_fra_titers.tsv"
- name: who_ferret_cell_hi
data: "data/h3n2/who_ferret_cell_hi_titers.tsv"
- name: who_ferret_egg_hi
data: "data/h3n2/who_ferret_egg_hi_titers.tsv"
- name: who_human_cell_fra
data: "data/h3n2/who_human_cell_fra_titers.tsv"
- name: who_human_cell_hi
data: "data/h3n2/who_human_cell_hi_titers.tsv"
- name: cdc_ferret_cell_hi
data: "data/h3n2/cdc_ferret_cell_hi_titers.tsv"
- name: cdc_ferret_egg_hi
data: "data/h3n2/cdc_ferret_egg_hi_titers.tsv"
- name: crick_ferret_cell_hi
data: "data/h3n2/crick_ferret_cell_hi_titers.tsv"
- name: crick_ferret_egg_hi
data: "data/h3n2/crick_ferret_egg_hi_titers.tsv"
- name: niid_ferret_cell_hi
data: "data/h3n2/niid_ferret_cell_hi_titers.tsv"
- name: niid_ferret_egg_hi
data: "data/h3n2/niid_ferret_egg_hi_titers.tsv"
- name: vidrl_ferret_cell_hi
data: "data/h3n2/vidrl_ferret_cell_hi_titers.tsv"
- name: vidrl_ferret_egg_hi
data: "data/h3n2/vidrl_ferret_egg_hi_titers.tsv"
- name: cdc_ferret_cell_fra
data: "data/h3n2/cdc_ferret_cell_fra_titers.tsv"
- name: cdc_ferret_egg_fra
data: "data/h3n2/cdc_ferret_egg_fra_titers.tsv"
- name: crick_ferret_cell_fra
data: "data/h3n2/crick_ferret_cell_fra_titers.tsv"
- name: crick_ferret_egg_fra
data: "data/h3n2/crick_ferret_egg_fra_titers.tsv"
- name: niid_ferret_cell_fra
data: "data/h3n2/niid_ferret_cell_fra_titers.tsv"
- name: niid_ferret_egg_fra
data: "data/h3n2/niid_ferret_egg_fra_titers.tsv"
- name: vidrl_ferret_cell_fra
data: "data/h3n2/vidrl_ferret_cell_fra_titers.tsv"
- name: vidrl_ferret_egg_fra
data: "data/h3n2/vidrl_ferret_egg_fra_titers.tsv"
subsamples: *representative-subsampling-scheme
vic_2y:
lineage: vic
reference: "config/vic/{segment}/reference.fasta"
annotation: "config/vic/{segment}/genemap.gff"
tree_exclude_sites: "config/vic/{segment}/exclude-sites.txt"
clades: "config/vic/ha/clades.tsv"
auspice_config: "config/vic/auspice_config.json"
min_date: "2Y"
reference_min_date: "8Y"
include: "config/vic/reference_strains.txt"
exclude: "config/vic/outliers.txt"
vaccines: "config/vic/vaccine.json"
titer_collections:
- name: who_ferret_cell_hi
data: "data/vic/who_ferret_cell_hi_titers.tsv"
- name: who_ferret_egg_hi
data: "data/vic/who_ferret_egg_hi_titers.tsv"
- name: who_human_cell_hi
data: "data/vic/who_human_cell_hi_titers.tsv"
- name: cdc_ferret_cell_hi
data: "data/vic/cdc_ferret_cell_hi_titers.tsv"
- name: cdc_ferret_egg_hi
data: "data/vic/cdc_ferret_egg_hi_titers.tsv"
- name: crick_ferret_cell_hi
data: "data/vic/crick_ferret_cell_hi_titers.tsv"
- name: crick_ferret_egg_hi
data: "data/vic/crick_ferret_egg_hi_titers.tsv"
- name: niid_ferret_cell_hi
data: "data/vic/niid_ferret_cell_hi_titers.tsv"
- name: niid_ferret_egg_hi
data: "data/vic/niid_ferret_egg_hi_titers.tsv"
- name: vidrl_ferret_cell_hi
data: "data/vic/vidrl_ferret_cell_hi_titers.tsv"
- name: vidrl_ferret_egg_hi
data: "data/vic/vidrl_ferret_egg_hi_titers.tsv"
subsamples: *representative-subsampling-scheme