Skip to content

Commit aadbf79

Browse files
committed
example-open: customize Auspice config and description
1 parent 53ebd1d commit aadbf79

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

profiles/example-open/builds.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
custom_rules:
2+
- profiles/example-open/overwrite_auspice_config.smk
3+
14
strain_id_field: accession
25

36
inputs:
@@ -32,7 +35,9 @@ builds:
3235
clades: "config/h3n2/ha/clades.tsv"
3336
subclades: "config/h3n2/{segment}/subclades.tsv"
3437
lineage: "h3n2"
35-
auspice_config: "config/h3n2/{segment}/auspice_config.json"
38+
# Created in the workflow with custom rule `overwrite_auspice_config`
39+
auspice_config: "data/h3n2/{segment}/auspice_config.json"
40+
description: "profiles/example-open/description.md"
3641
subsamples:
3742
global:
3843
filters: "--exclude-where 'ha!=True' 'na!=True' --exclude-ambiguous-dates-by any --subsample-max-sequences 300 --group-by region month --min-date 3Y"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
We gratefully acknowledge the authors, originating and submitting laboratories
2+
of the genetic sequences and metadata for sharing their work. This work is made
3+
possible by the open sharing of genetic data by research groups from all over
4+
the world. We gratefully acknowledge their contributions.
5+
6+
Special thanks to [GenSpectrum](https://loculus.genspectrum.org) for the
7+
curation work to link multiple INSDC segment sequences to a single sample and
8+
for making the data accessible via an open API.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
rule overwrite_auspice_config:
2+
input:
3+
auspice_config = "config/{lineage}/{segment}/auspice_config.json",
4+
output:
5+
auspice_config = "data/{lineage}/{segment}/auspice_config.json",
6+
shell:
7+
"""
8+
jq '.data_provenance = [{{"name": "GenSpectrum", "url": "https://loculus.genspectrum.org"}}]' \
9+
{input.auspice_config:q} \
10+
> {output.auspice_config:q}
11+
"""

0 commit comments

Comments
 (0)