/reactome/pathways/events

POST /api/reactome/pathways/events

Price: 20 credits

Walk the whole event hierarchy of one species, flattened from its top-level pathways down

How to use it

One call returns the species' entire tree already flattened, so use it instead of walking `has_events` from reactome/pathways one record at a time. Rebuild the tree from `parent_id` and `depth`, where a root carries an empty `parent_id`. The same event comes back under every parent it sits under and can also repeat under one parent, so neither `id` nor the `parent_id` plus `id` pair is unique: deduplicate on `id` to count distinct events, and on the whole row when rebuilding the tree. Only the sixteen species Reactome curates directly have a tree, and anything else is rejected; a taxonomy id and the species name are both accepted. Turning `pathways_only` off adds every individual reaction under the pathways.

Parameters

Request body

Response

Errors

Response headers