Skip to content

Commit b613ef2

Browse files
committed
Document GB_FEATURES config key
1 parent f80f75b commit b613ef2

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

config/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ All of the following variables are pre-defined in [config.yaml](/config/config.y
130130

131131
- `ALIGNMENT_REFERENCE`: NCBI accession number of the reference record for sequence alignment.
132132
- `PROBLEMATIC_VCF`: URL or path of a VCF file containing problematic genome positions for masking.
133-
- `FEATURES_JSON`: path of a JSON file containing name equivalences of genome features for data visualization.
134133
- `COORDINATES_JSON`: path of a JSON file containing genome feature coordinates for data visualization.
135134
- `GENETIC_CODE_JSON`: path of a JSON file containing a genetic code for gene translation.
136135
- `TREE_MODEL`: substitution model used by IQTREE (see [docs](http://www.iqtree.org/doc/Substitution-Models)).
@@ -155,6 +154,18 @@ All of the following variables are pre-defined in [config.yaml](/config/config.y
155154
- `WINDOW`: sliding window of nucleotide variants per site configuration:
156155
- `WIDTH`: number of sites within windows.
157156
- `STEP`: number of sites between windows.
157+
- `GB_FEATURES`: optional mapping to filter which features from the GenBank file are used
158+
by some analyses (e.g. rules `window` and `N_S_sites`).
159+
If `GB_FEATURES` is empty or unset, all features are used.
160+
Filtering is applied in order:
161+
- `INCLUDE`: mapping of qualifier names to sequences of values.
162+
If present, only features that match at least one key/value pair in `INCLUDE`
163+
are included in the analyses. For example, having `INCLUDE: {gene: [S, N]}` keeps features whose `gene`
164+
qualifier equals `S` or `N`.
165+
- `EXCLUDE`: mapping of qualifier names to sequences of values.
166+
After `INCLUDE` is applied, any feature that matches any key/value pair in `EXCLUDE`
167+
is omitted. For example, having `EXCLUDE: {gene: [S, N]}` removes features whose
168+
`gene` qualifier equals `S` or `N`.
158169
- `GISAID`: automatic context download configuration.
159170
- `CREDENTIALS`: path of the GISAID credentials in YAML format.
160171
- `DATE_COLUMN`: name of the column that contains sampling dates (YYYY-MM-DD) in the input target metadata.
@@ -170,6 +181,9 @@ All of the following variables are pre-defined in [config.yaml](/config/config.y
170181
- `PLOT_GENOME_REGIONS`: path of a CSV file containing genome regions, e.g. SARS-CoV-2 non-structural protein (NSP) coordinates, for data visualization.
171182
- `REPORT_QMD`: path of the report template in Quarto markdown (QMD) format.
172183

184+
TODO: describe new entries in config.yaml
185+
TODO: describe issues with many cores (rules freyja and snps_to_ancestor)
186+
173187
## Workflow graphs
174188

175189
To generate a simplified rule graph, run:

0 commit comments

Comments
 (0)