get_event_ancestors
Retrieve all ancestor paths from a specific event up to its top-level pathways, helping users build breadcrumbs and locate where a reaction or pathway sits in the Reactome hierarchy.
Instructions
Retrieve all paths from an event up to its top-level pathway(s).
Useful for building breadcrumbs / locating where a reaction sits.
Args:
stable_id: Event (pathway or reaction) stable id, e.g. "R-HSA-69620".
Returns:
Dict `{count, ancestors}` where each ancestor is an ordered path of
events from the queried event to a top-level pathway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stable_id | Yes |