Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Markdown output for reports #129

Merged
merged 6 commits into from
Nov 27, 2023
Merged

Make Markdown output for reports #129

merged 6 commits into from
Nov 27, 2023

Conversation

huddlej
Copy link
Contributor

@huddlej huddlej commented Nov 27, 2023

Description of proposed changes

Adds Snakemake rules and scripts to make Markdown tables as part of the nextflu-private workflow, so we can add these tables to our monthly reports.

Related issue(s)

The functionality from this PR depends on the tabulate package. This package gets installed implicitly in Nextstrain Docker and Conda runtimes as a dependency of Snakemake, however we will want to eventually install tabulate in those runtimes explicitly to document that we depend on it directly. See this Slack thread for more details.

Checklist

  • Checks pass

Instead of rounding decimal values prior creation of the Markdown table
output, use tabulate's own `floatfmt` argument to control that display
detail. Since we used to round current frequencies to 2 decimals and
then filter haplotypes with frequency of zero, we now filter for
haplotypes with a current frequency of at least 1% which produces the
same effect but in a clearer way.
@huddlej
Copy link
Contributor Author

huddlej commented Nov 27, 2023

These changes only affect the nextflu-private builds, so I'm going to merge this now, and we can use it in our next monthly report in December and continue to build on this functionality in our efforts to automate more parts of these reports.

@huddlej huddlej merged commit 05c22e8 into master Nov 27, 2023
3 checks passed
@huddlej huddlej deleted the make-markdown-output branch November 27, 2023 19:07
@huddlej huddlej mentioned this pull request Nov 27, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant