Reactome native diagram SVGs + offline pathway→diagram map#15
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What
Ship Reactome's native pathway diagrams so the app can show them without calling reactome.org at runtime.
reactome.org's live diagram exporter (
/ContentService/exporter/diagram/<id>.svg) is behind a Cloudflare bot challenge and 403s server-side requests. Its static download area is not challenged and publishes the same pre-rendered SVGs in bulk, so we mirror them here and precompute the sub-pathway → diagram resolution offline.Contents
inst/extdata/reactome-svg/R-HSA-<id>.svg.gz— 1382 human diagram SVGs, gzipped (~263 MB). Decompressed on demand byplaybase::getReactomeSVG(~10 ms, cached).inst/extdata/reactome_diagram_map.tsv— 2883 entries mapping every human pathway to the diagram that depicts it (self, or nearest ancestor that owns a diagram). 100% coverage.data-raw/build-reactome-diagrams.R— regenerates both from Reactome's static downloads on each release (~quarterly).Consumed by
getReactomeSVGreads these directly — no fallback) and Reactome pathway board: native diagrams, no live reactome.org call omicsplayground#1814.🤖 Generated with Claude Code