Repository navigation
Add standalone prediction ensemble reporting - #25
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The report omits and truncates statistics despite promising a complete standalone research record.
Review effort: Balanced
Findings: 3
Open (4)
What changed in this PR
Adds downloadable standalone HTML reporting for prediction ensembles.
Changes:
- Adds ensemble metrics, provenance, variability rankings, and residue statistics.
- Integrates report download into the Summary workflow.
- Adds regression coverage and documentation.
| File | Description |
|---|---|
shinyRam/R/reports.R |
Generates the standalone ensemble report. |
shinyRam/app.R |
Adds the report download handler and button. |
tests/reports.R |
Tests report generation and content. |
docs/prediction-ensembles.md |
Documents the HTML report. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+216
to
+219
| if(!is.numeric(max_report_rows) || length(max_report_rows)!=1L || | ||
| !is.finite(max_report_rows) || max_report_rows<1L) | ||
| stop("max_report_rows must be a positive finite number.") | ||
| max_report_rows <- as.integer(max_report_rows) |
| "psi_mean","psi_sd","rama8000_models","rama8000_mode", | ||
| "rama8000_consistency","rama8000_changes","plddt_models","plddt_mean", | ||
| "plddt_sd","plddt_min","plddt_max"),names(residues)) | ||
| shown <- utils::head(residues[,all_fields,drop=FALSE],max_report_rows) |
Comment on lines
+261
to
+269
| all_fields <- intersect(c("chain","resi","insertion_code","resn", | ||
| "models_present","phi_models","psi_models","phi_mean","phi_sd", | ||
| "psi_mean","psi_sd","rama8000_models","rama8000_mode", | ||
| "rama8000_consistency","rama8000_changes","plddt_models","plddt_mean", | ||
| "plddt_sd","plddt_min","plddt_max"),names(residues)) | ||
| shown <- utils::head(residues[,all_fields,drop=FALSE],max_report_rows) | ||
| numeric_fields <- c("phi_mean","phi_sd","psi_mean","psi_sd", | ||
| "rama8000_consistency","plddt_mean","plddt_sd","plddt_min","plddt_max", | ||
| "max_angular_sd") |
Comment on lines
+73
to
+74
| grepl("aaa",ensemble_contents,fixed=TRUE), | ||
| grepl("bbb",ensemble_contents,fixed=TRUE), |
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 merged PR #23.
Adds a self-contained HTML research report for prediction ensembles:
Includes report-generation regression coverage and documentation.
This replaces the automatically closed stacked PR #24 after #23 was merged.