Repository navigation
Add conformational change explorer - #22
Merged
Merged
Conversation
CedricHermansBIT
changed the base branch from
feature/rama8000-validation
to
main
October 6, 2026 17:58
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The track omits valid aligned endpoints, rebuilds on every selection, has accessibility gaps, and its browser tests do not verify the claimed linked behavior.
Review effort: Balanced
Findings: 4
Open (6)
Filtering unavailable torsions drops terminal and broken-chain residues · New Re-rendering track resets scroll and causes excessive DOM churn · New Test shortcut selection and verify ranking with unequal shifts · New Verify track selection updates 3D highlights and 2D overlay · New Expose selected track cell state to assistive technology · New Include both residue identities in track cell accessible names · New
What changed in this PR
Adds a residue-level Conformational Change Explorer to linked structure comparisons.
Changes:
- Computes and classifies wrapped φ/ψ displacement.
- Adds an interactive residue track, ranking, filters, metrics, and linked selection.
- Extends unit, browser, and user documentation coverage.
| File | Description |
|---|---|
shinyRam/R/inspection.R |
Calculates displacement and display bands. |
shinyRam/app.R |
Integrates explorer UI and comparison behavior. |
shinyRam/www/custom.js |
Handles track selections. |
shinyRam/www/styles.css |
Styles the explorer. |
tests/inspection.R |
Tests calculations and thresholds. |
tests/ui-browser.cjs |
Adds browser checks for the explorer. |
README.md |
Advertises the new comparison workflow. |
docs/inspection-user-guide.md |
Documents usage and interpretation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+1582
to
+1583
| finite <- which(is.finite(data$angular_displacement) & | ||
| data$alignment %in% c("Match","Substitution")) |
| finite <- which(is.finite(data$angular_displacement) & | ||
| data$alignment %in% c("Match","Substitution")) | ||
| if (!length(finite)) return(NULL) | ||
| selected <- selected_comparison() |
Comment on lines
+637
to
+638
| assert.ok(changeTrack.topLabels.length > 0 && changeTrack.topLabels.length <= 5, | ||
| "Explorer should expose the largest local shifts as navigation targets."); |
Comment on lines
+647
to
+651
| const stage = window.getNGLStage && window.getNGLStage("NGLCompare"); | ||
| return cell && stage && | ||
| stage.getRepresentationsByName("ram-compare-highlight-a").list.length === 1 && | ||
| stage.getRepresentationsByName("ram-compare-highlight-b").list.length === 1 && | ||
| document.querySelector(".ram-compare-selection-pair"); |
| band_class(data$shift_band[[i]]), | ||
| if (!is.null(selected) && identical(data$row_id[[i]],selected)) | ||
| "is-selected" else ""), | ||
| "data-row-id"=data$row_id[[i]], |
Comment on lines
+1617
to
+1618
| "aria-label"=sprintf( | ||
| "Inspect aligned residue pair with %.1f degree backbone shift",shift) |
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.


Adds the first residue-level Conformational Change Explorer to the pairwise Compare workflow.
What it does
sqrt(Δφ² + Δψ²)after wrapping each angular component across ±180°;Interpretation
The combined angular displacement is explicitly presented as a navigation/ranking measure, not a statistical significance score, RMSD, free-energy metric or proof of biological motion.
Coverage