Skip to content

Reactome native diagram SVGs + offline pathway→diagram map#15

Merged
ESCRI11 merged 2 commits into
mainfrom
feat/reactome-diagrams
Jul 13, 2026
Merged

Reactome native diagram SVGs + offline pathway→diagram map#15
ESCRI11 merged 2 commits into
mainfrom
feat/reactome-diagrams

Conversation

@ESCRI11

@ESCRI11 ESCRI11 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

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 by playbase::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

🤖 Generated with Claude Code

ESCRI11 and others added 2 commits July 13, 2026 10:04
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ESCRI11 ESCRI11 merged commit 8db2c0d into main Jul 13, 2026
@ESCRI11 ESCRI11 deleted the feat/reactome-diagrams branch July 13, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant