Skip to content

Commit

Permalink
Add general report output target for private build
Browse files Browse the repository at this point in the history
Adds a general Snakemake target for all report-related outputs and adds
the sample counts by lineage to that target. This change will allow
report content to be generated automatically by the GitHub Action run of
the workflow.
  • Loading branch information
huddlej committed May 13, 2024
1 parent 283df5c commit a47d6d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-nextflu-private-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
--env NEXTSTRAIN_PASSWORD \
. \
deploy_all \
all_counts_of_recent_tips_by_clade \
all_report_outputs \
-p \
--configfile profiles/nextflu-private.yaml
9 changes: 5 additions & 4 deletions profiles/nextflu-private/report.smk
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
rule all_report_outputs:
input:
tip_counts_by_clade=expand("builds/{build_name}/counts_of_recent_tips_by_clade.md", build_name=list(config["builds"].keys())),
total_sample_count_by_lineage="figures/total-sample-count-by-lineage.png",

rule plot_lineage_counts:
input:
h1n1pdm_metadata="data/h1n1pdm/metadata.tsv",
Expand All @@ -24,10 +29,6 @@ rule plot_lineage_counts:
--output-vic-count {output.total_sample_count_vic}
"""

rule all_counts_of_recent_tips_by_clade:
input:
counts=expand("builds/{build_name}/counts_of_recent_tips_by_clade.md", build_name=list(config["builds"].keys()))

rule count_recent_tips_by_clade:
input:
recency="builds/{build_name}/recency.json",
Expand Down

0 comments on commit a47d6d4

Please sign in to comment.