Skip to content

Commit

Permalink
Generate and export GenoFLU results for fauna
Browse files Browse the repository at this point in the history
Includes both the per-segment results and the whole-genome genotype/
constellation
  • Loading branch information
jameshadfield committed Feb 23, 2025
1 parent d2d08ad commit 956dd12
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,15 @@ rule auspice_config:
auspice_config['colorings'][division_idx]["title"] += " (inferred)"
else:
auspice_config['display_defaults']['distance_measure'] = "div"

# If we have a coloring for 'genoflu' and we're not a genome build then export the genoflu call for the segment
genoflu_idx = next((i for i,c in enumerate(auspice_config['colorings']) if c['key']=='genoflu'), None)
if wildcards.segment!='genome' and genoflu_idx is not None:
auspice_config['colorings'].insert(genoflu_idx+1, {
"key": f"genoflu_{wildcards.segment.upper()}",
"title": f"GenoFLU ({wildcards.segment.upper()} segment)",
"type": "categorical",
})
with open(output.auspice_config, 'w') as fh:
json.dump(auspice_config, fh, indent=2)

Expand Down
5 changes: 5 additions & 0 deletions config/h5n1/auspice_config_h5n1.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
"title": "Provisional LABEL Clade",
"type": "categorical"
},
{
"key": "genoflu",
"title": "GenoFLU constellation",
"type": "categorical"
},
{
"key": "gisaid_clade",
"title": "GISAID Clade",
Expand Down
5 changes: 5 additions & 0 deletions config/h5nx/auspice_config_h5nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
"title": "Provisional LABEL Clade",
"type": "categorical"
},
{
"key": "genoflu",
"title": "GenoFLU constellation",
"type": "categorical"
},
{
"key": "gisaid_clade",
"title": "GISAID Clade",
Expand Down
5 changes: 5 additions & 0 deletions config/h7n9/auspice_config_h7n9.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
"title": "Host",
"type": "categorical"
},
{
"key": "genoflu",
"title": "GenoFLU constellation",
"type": "categorical"
},
{
"key": "furin_cleavage_motif",
"title": "Furin Cleavage Motif",
Expand Down
5 changes: 5 additions & 0 deletions config/h9n2/auspice_config_h9n2.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
"title": "Host",
"type": "categorical"
},
{
"key": "genoflu",
"title": "GenoFLU constellation",
"type": "categorical"
},
{
"key": "furin_cleavage_motif",
"title": "Furin Cleavage Motif",
Expand Down
2 changes: 1 addition & 1 deletion ingest/defaults/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ s3_dst:
path_to_fauna: ../../fauna

genoflu:
fauna: false
fauna: true

0 comments on commit 956dd12

Please sign in to comment.