Repository navigation
mic_50_90: PNG charts and a short answer table - #9093
Open
maciejkochanowski wants to merge 2 commits into
Open
maciejkochanowski wants to merge 2 commits into
maciejkochanowski wants to merge 2 commits into
Conversation
…n tool The HTML report is shown as plain text on servers that do not allowlist the tool. The distribution tool now also returns the report chart of each cohort as a PNG image, drawn by the program's own chart function with its bundled DejaVu Sans fonts, and a tab-separated table with one row per question: possible count and share, the answer, population bounds, the count worth requesting and notes on refused cohorts and rejected rank conventions. The program itself is unchanged (2.0.0).
- Sort the imports as flake8-import-order (smarkets) expects. - Write the suggested count with the numeric upper limit of the last recorded group (MIC <= 1 mg/L), not its label (MIC <= <=1 mg/L). - Give cohorts whose identifiers map to the same file name separate charts instead of overwriting one of them. - Replace tabs and line breaks inside table cells with spaces.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #9029.
On servers that do not allowlist the tools, the HTML report of
mic_50_90_distributionis shown as plain text, so the charts are not visible in Galaxy. This adds two outputs to the distribution tool:charts: a list collection with the report chart of each analysed cohort as PNG. The chart is drawn by the program's own function (mic_50_90.result_view.count_chart, the same SVG as in the report) and only converted with CairoSVG, using the DejaVu Sans fonts bundled with the program.summary: a tabular file with one row per question, with the column names set as Galaxy metadata: possible count and share, the answer, population bounds when requested, the count worth requesting, and the reason for refused cohorts or rejected rank conventions. Every value is copied fromresults.json.The program version is unchanged (2.0.0); the version suffix is bumped to
galaxy1, andcairosvgandfonttoolsare added as requirements. Tests for the new outputs are included;planemo lintandplanemo testpass for all three tools locally (12 tests).