Skip to content

cBioPortal/cbioportal-vitessce-proxy

Repository files navigation

cBioPortal Vitessce Proxy

A lightweight app for viewing Vitessce visualizations. Supports loading configs from local files, pasted JSON, or remote URLs. Views can be embedded in iframes.

Prerequisites

Getting Started

# Install dependencies
pnpm install

# Start the dev server
pnpm dev

The app runs at http://localhost:5173 by default.

Available Scripts

Command Description
pnpm dev Start the Vite dev server
pnpm build Build for production
pnpm preview Preview the production build
pnpm lint Run ESLint

Adding Datasets

Place Vitessce JSON config files in public/view_configs/ and register them in public/view_configs/index.json:

[
  { "name": "My Dataset", "path": "my_dataset" }
]

The path value should match the filename without .json (e.g., my_dataset maps to public/view_configs/my_dataset.json).

URL Reference

URL Description
/ Homepage with dataset list and config input forms
/view?dataset=<name> Load a local config from view_configs/
/view?config_url=<url> Load a config from a remote URL
/view?dataset=<name>&embed=true Embed mode (hides header and breadcrumb)

Embed mode is also automatically activated when the page is loaded inside an iframe.

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors