Show pathway diagrams for interacting genes #370
Merged
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.
This renders biochemical pathway diagrams for interacting genes. That gives deep functional insight into cell circuits.
Previously (#293), the interactions between a searched gene and an interacting gene were summarized only by text. For example, LDLR was reported to "act on" APOE in certain pathways like "Familial hyperlipidemia type 3".
That was useful, but quite limited. Genes work in directed graphs; the text only summarizes one adjacent gene among many causally related genes in that medical condition. Users could click to see the full pathway, but would be brought to the external WikiPathways website in a static page. Zooming to discern genes in big pathways required clicking to load another page.
Now, the pathway diagram is shown right in the embedding page, and it's interactive. This dramatically reduces cognitive load when exploring. The searched gene (e.g. "LDLR") and interacting gene ("APOE") are highlighted in the pathway. Here's how it looks!
Pathway_diagrams__Ideogram_2024-08-09.mov
The interactive zooming, panning, and coloring is enabled by Pvjs. Diagram SVGs and their built-in structured data come from WikiPathways.