https://github.com/riyavsinha/reactome-anywidget
An AnyWidget component for interactive embedding of Reactome Pathway browsers
https://github.com/riyavsinha/reactome-anywidget
anywidget bioinformatics reactome
Last synced: 9 months ago
JSON representation
An AnyWidget component for interactive embedding of Reactome Pathway browsers
- Host: GitHub
- URL: https://github.com/riyavsinha/reactome-anywidget
- Owner: riyavsinha
- License: mit
- Created: 2025-02-19T09:19:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-19T09:31:23.000Z (over 1 year ago)
- Last Synced: 2025-07-08T20:48:10.154Z (11 months ago)
- Topics: anywidget, bioinformatics, reactome
- Language: Python
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reactome Anywidget
This is a widget built on [AnyWidget](https://anywidget.dev/) that allows you to embed a Reactome pathway diagram in environments like JupyterLab or Marimo notebooks.

## Installation
```bash
pip install reactome-anywidget
```
## Usage
### JupyterLab
```python
from reactome_anywidget import ReactomeWidget
ReactomeWidget(diagramId="R-HSA-199420", width=800, height=600)
```
### Marimo
```python
import marimo as mo
from reactome_anywidget import ReactomeWidget
mo.ui.anywidget(ReactomeWidget, diagramId="R-HSA-199420", width=800, height=600).center()
```
## Known Issues
This widget does not fully work in Marimo. The diagram is displayed, but search functionality won't render. This is possibly due to the fact that Marimo allows creating elements in a shadow DOM, which the Reactome widget cannot access.