Skip to content
プロジェクト

概要

A visualization grammar and GPU-accelerated toolkit for genomic data

デザイン・メディア

この数値の測り方

計測したスター増加

24時間
0
7日間
+1
15日間
+3
1か月
+8

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

GenomeSpy

Teaser

npm version DOI

GenomeSpy is a visualization toolkit for genomic (and other) data. It features a visualization grammar inspired by Vega-Lite and a high-performance, WebGL-powered graphics renderer.

Documentation and examples can be found at https://genomespy.app/

Monorepo

GenomeSpy is organized into npm workspaces.

Core

The core library provides the visualization grammar and a WebGL-powered rendering engine.

Cohort App

The app builds upon the core, extending the visualization grammar with support for faceting multiple (up to thousands of) patient samples. It provides a user interface for interactive analysis of the samples, which can be filtered, sorted, and grouped flexibly. The app includes session handling with provenance, URL hashes, and bookmarks.

Playground

The playground is a browser-based editor for GenomeSpy Core specifications. Start from an example, edit the JSON, and preview your changes in the hosted Playground.

Embed Examples

The embed-examples package contains examples of how to embed GenomeSpy in web applications and use the API for advanced use cases.

WebGPU Renderer

The experimental webgpu-renderer package will become the main renderer in GenomeSpy v2.0. It is designed to work independently of GenomeSpy and may move to a separate repository once it stabilizes.

Contributing

Bootstrapping and running

Bootstrap the checkout

Use Node.js 24 and npm 10.9 or newer. Clone the repository, install workspace dependencies, and generate the JSON Schemas used by the Playground and by editors for specification completion and validation.

git clone https://github.com/genome-spy/genome-spy.git
cd genome-spy
npm ci
npm run build:schemas

VSCode users should open genome-spy.code-workspace to enable the shared JSON Schema associations and schema-generation task without changing personal .vscode/ settings.

Local development servers

Run the command for your workspace from the repository root and open the URL printed in the terminal.

Workspace Command Page to open
Cohort App npm -w @genome-spy/app run dev / to browse examples
Core npm -w @genome-spy/core run dev /?spec=examples/core/first.json
Playground npm -w @genome-spy/playground run dev /
Embed Examples npm -w @genome-spy/embed-examples run dev / to browse examples
WebGPU Renderer npm -w @genome-spy/webgpu-renderer run dev /examples/basic.html in a WebGPU-capable browser

npm start also launches the Cohort App. App and Core both default to port 8080. To run them together, set a different port on one command, for example PORT=8081 npm -w @genome-spy/core run dev.

App and Core serve the shared examples/ directory. Try the first Core example. Keep local experiments in the repository-root private/ directory and open them with a URL such as http://localhost:8080/?spec=private/foo.json.

  • Open the Inspector from the Playground toolbar or the Cohort App menu.
  • Preview the React Component at /reactComponent/ on the Embed Examples server.
  • Preview the Documentation Embed component on the docs site.
  • List the command-line dataflow benchmark scripts with npm -w @genome-spy/dataflow-bench run.

Building Docs

The docs toolchain uses Zensical in a repo-local Python virtual environment managed by uv. After bootstrapping the checkout and installing uv, run these commands from the repository root to install the docs dependencies and start a local preview.

npm run docs:install
npm run docs:serve

Use npm run build:docs for a full build. It clears Zensical's Markdown cache in .cache.

Contributing guidelines

Please see the CONTRIBUTING.md file for more information.

Citing

If you use GenomeSpy in your research, please cite the following paper:
Kari Lavikka, Jaana Oikkonen, Yilin Li, Taru Muranen, Giulia Micoli, Giovanni Marchi, Alexandra Lahtinen, Kaisa Huhtinen, Rainer Lehtonen, Sakari Hietanen, Johanna Hynninen, Anni Virtanen, Sampsa Hautaniemi, Deciphering cancer genomes with GenomeSpy: a grammar-based visualization toolkit, GigaScience, Volume 13, 2024, giae040, https://doi.org/10.1093/gigascience/giae040

Use in clinical settings

GenomeSpy is intended for research and general data-visualization purposes and has not been validated or approved for clinical diagnostic use.

Use of AI assistance

Since the beginning of 2026, most of the code in this repository has been written with the assistance of AI tools, mostly OpenAI's Codex. The architecture of the code and the overall design of the system are the result of careful human decisions. All non-trivial code has been reviewed by a human developer.

About

Copyright (c) 2018-2026 Kari Lavikka and contributors. See LICENSE for details.

GenomeSpy was created by Kari Lavikka as an MSc student at the University of Helsinki and was subsequently developed further in the Systems Biology of Drug Resistance in Cancer group.

Development of GenomeSpy has been supported by funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No. 965193 (DECIDER) and No. 847912 (RESCUER), as well as from the Biomedicum Helsinki Foundation, the Sigrid Jusélius Foundation, the Cancer Foundation Finland, and Orion Research Foundation.

Contains some code copied and adapted from the following projects:

関連プロジェクトを探す

読み込み中…