Enhance Similarity Maps (Embeddings) Visualization in cBioPortal
Project Description
cBioPortal recently added a new "Similarity Maps" feature to the Study View (PR #5224) that visualizes UMAP/PCA embeddings of cancer samples. This allows researchers to explore relationships between samples based on genomic, histological, or combined features. The initial implementation is a prototype with several areas for improvement.
This project aims to enhance the Similarity Maps feature to make it production-ready and more powerful for cancer research.
Goals
Core Improvements (Medium Project ~175 hours)
-
Backend Data Architecture
- Move embedding data from S3 files to proper datahub storage
- Design database schema for embeddings
- Create ingestion pipeline for embedding data
-
Enhanced Tooltips
- Show user-selectable fields in tooltips
- Similar to the approach in cbioportal-zarr-loader
-
Improved Coloring Options
- When coloring by a specific gene, add ability to color by mutation type
- Add custom color thresholding similar to IGV
-
Additional Visual Dimensions
- Add ability to use an attribute as another dimension (e.g., shape)
- Allow combining color and shape for multi-dimensional exploration
Extended Goals (Large Project ~350 hours)
-
AI Integration
- For selected points, enable AI-powered queries about the data
- Similar to Cell Whisperer
- "What patterns exist in these selected samples?"
- "What distinguishes these samples from the rest?"
-
Dynamic UMAP Generation
- Backend support for subsetting data and generating UMAP on the fly
Skills Required
- Frontend: TypeScript, React, deck.gl
- Backend: Java, Spring Boot, SQL
- Nice to have: Python (for embedding generation), experience with dimensionality reduction (UMAP, PCA)
Mentors
- @inodb
References
- PR #5224 - Add Embeddings to Study View
- cbioportal-zarr-loader
- Cell Whisperer
- IGV Color Thresholding
Difficulty
Medium to Hard (depending on scope chosen)
Project Size
- Medium (~175 hours): Core improvements (goals 1-4)
- Large (~350 hours): Core + Extended goals (goals 1-6)
"Hi @inodb, I'm interested in working on Backend Data Architecture. I've read PR #5224 and the zarr-loader repo. Before I start designing the schema and ingestion pipeline, I wanted to confirm is Zarr the intended storage format to replace the current S3 files, or is there a different backend storage in mind? Happy to start with a design proposal if that helps."
Hi @inodb,
I'm interested in contributing to this GSoC 2026 project! I've gone through PR #5224 and the project description, and I'm excited about the opportunity to enhance the Similarity Maps feature.
Based on my background in JavaScript and open source contributions, I'd like to focus on:
- Enhanced Tooltips & UI improvements: Implementing user-selectable fields in tooltips similar to the zarr-loader approach
- Improved Coloring Options: Adding mutation type coloring and custom thresholding capabilities inspired by IGV
- Frontend visualization: Leveraging React and deck.gl to add additional visual dimensions (shape + color combinations)
I have experience with:
- JavaScript/TypeScript and React for frontend development
- Data structures and algorithms for efficient data handling
- Open source contribution workflows on GitHub
I'd be happy to start with a smaller task to get familiar with the codebase, such as:
- Implementing enhanced tooltips with configurable fields
- Adding mutation subtype thresholds to the coloring logic
Could you guide me on which area would be most impactful to start with? I'm also available to discuss a project proposal if that would be helpful.
Thanks!
Hi @inodb,
I'm very interested in this project for GSoC 2026. I’ve been going through PR #5224 to understand how Similarity Maps are currently integrated into the Study View. I found the use of deck.gl for rendering large embeddings particularly interesting, as well as the caching approach for rawPlotData.
One thing I’m curious about is the long-term architecture for embedding data once it moves away from S3. For example, when embeddings are stored in the datahub, will they be treated as versioned study-level artifacts (similar to other molecular data), or as a more dynamic dataset that can support operations like filtering and subsetting for future features such as dynamic UMAP generation?
Understanding that design would help clarify how the ingestion pipeline and schema should be structured.
I’d be happy to start by exploring the backend schema and ingestion workflow for embeddings and preparing a small design proposal if that would be useful.
Thanks!
Hi @inodb
I’m James Patrick De Ocampo, 23, IT student. I’ve been looking through the cBioPortal GSoC 2026 projects and the Similarity Maps (Embeddings) Visualization one really caught my eye. I think there’s a lot of potential to make it easier for researchers to explore and understand the data visually, and I’d love to help out.
I’ve worked with JavaScript/TypeScript and React before, and I’m comfortable diving into open source projects on GitHub. I also like thinking about efficient ways to handle data, which I think will be useful for this project.
I’d love to get a sense of where it would be most useful for me to start. I can begin with a smaller task to get familiar with the codebase, or jump into one of the bigger visualization improvements. I’m happy to brainstorm ideas or draft a proposal if that would help.
Thanks for your time, and I hope to help make this feature even better!
Cheers, James Patrick De Ocampo
Hi @inodb,
I am highly interested in the Large (350h) scope of this project. After deep-diving into PR #5224 and the cbioportal-zarr-loader architecture, I’ve put together a system design aimed at transitioning the current prototype into a production-ready, multimodal data pipeline (handling 1M+ points fluidly while enabling hallucination-free AI queries like CellWhisperer).
To address the architectural questions raised above, I propose a Hybrid Compute & Dual-Track Storage Architecture:
Datahub Staging & Dual-Track Ingestion: Moving away from unstructured JSONs, coordinates will be staged as TSV/Meta in datahub. A Java ETL pipeline will route Metadata to MySQL, while strictly converting the 1M+ coordinate rows into highly compressed Zarr arrays pushed directly to S3, bypassing disastrous relational DB JOINs.
Decoupled Frontend Streaming: The frontend will use zarrita to stream S3 binary chunks on-demand to deck.gl, keeping the UI thread unblocked.
The Factual Gateway (Anti-Hallucination): Before hitting any LLM for the CellWhisperer-style queries, the Java backend silently calculates the statistical differences (e.g., survival, mutations) of the lassoed cohort to serve as immutable facts.
Deterministic AI Microservice: A dedicated Python microservice consumes these hard facts (managed via Redis to prevent race conditions), orchestrates the prompt, and streams the response directly to the frontend's Copilot Drawer. (This also naturally extends into an MCP Tool).
I am currently documenting this data flow and the dynamic UMAP generation patterns in a Mini Design Doc. Would you be open to reviewing it once it's ready? I'd love to share the link here.
Zhengyang Peng
Hi @inodb I'm a 2nd year student in IT Engineering and I've spent the last few days going through the codebase. Read PR #5224 in detail (the MobX + deck.gl architecture, lasso selection, how coloring works), went through the zarr-loader repo, and looked at Cell Whisperer to understand what the AI query side might look like.
I'm interested in the large scope (350h), specifically the dynamic UMAP generation + AI-powered queries side. My background is in Python, Scikit-learn, PyTorch, dimensionality reduction, and building FastAPI services , so the Python backend feels like the natural fit for me here.
On dynamic UMAP:
The thing I noticed is that recomputing UMAP from scratch whenever a user subsets/filters samples would be way too slow for an interactive tool. My approach: persist the fitted umap-learn reducer object (via joblib) alongside the Zarr coordinate arrays in datahub. When a user subsets samples after a lasso selection or filter, we call fitted_reducer.transform(subset_points) instead projects the subset into the same latent space in milliseconds, no recomputation. The returned deltas between old and new coordinates could drive a smooth animated transition at the deck.gl layer, keeping the global spatial context intact. This also means the stored model can be versioned alongside the study's other molecular data.
On the AI query integration: Looking at how Cell Whisperer works vs. what makes sense for cBioPortal's data , I think there's a missing step between "user selects a cluster" and "LLM explains it." Raw coordinates or sample IDs don't give an LLM much to work with. My idea is to add a differential analysis step first: when a lasso selection is made, a Python service computes which mutations, CNAs, and clinical features are statistically enriched in the selected cluster vs. the background (Fisher's exact test for categorical features, Mann-Whitney U for continuous). That ranked list of significant alterations becomes the structured context passed to the LLM ,so the AI response is grounded in actual statistics from the study's data rather than just a vague description of what's selected. And even without the LLM step, this differential summary has standalone value as a biological insight feature.
I can put together a design doc or a small proof-of-concept for the transform()-based dynamic UMAP approach if that would help move things forward.
One question: for storing the fitted UMAP model objects in datahub , are you thinking of them as versioned binary artifacts alongside the Zarr files (similar to how other molecular data files are handled), or would you prefer to keep model artifacts in a separate storage layer? I want to make sure the backend design fits how datahub currently handles study-level data before I commit to a specific schema in my proposal.
Thanks for putting this together , this is very interesting GSoC projects I've come across. Yogin Langalia
Hi @inodb,
Following up on my previous comment, I have completed the Mini Design Doc detailing the architecture for the 1M+ Similarity Maps and the AI Copilot.
You can view and comment on the design here: Mini Design Doc: cBioPortal 1M+ Similarity Maps & AI Engine
While refining this architecture over the past few days, I critically evaluated the 350-hour GSoC timeline and the physical limits of rendering and filtering 1M+ points. To ensure a highly stable, mergeable, and infrastructure-light PR, I have made a few key architectural optimizations from my initial pitch:
- Dropped Redis & Stateful Sync (Frontend-Routed RAG): Instead of a complex Java ↔ Python polling mechanism, I transitioned to a Frontend-Routed Hard-Context pattern. The Java backend computes the stats (using the native Group Comparison), and the frontend routes this strictly truncated, factual payload directly to the Python LLM interface. This eliminates cross-service race conditions and enterprise firewall/WAF issues.
- Web Worker Data Bridge: To prevent 1M+ points from causing main-thread jank during MobX clinical filtering, the Zarr parsing and binary bitmask generation are strictly offloaded to a Web Worker before hitting the
deck.glGPU buffers. - Scope & OOM Management: Detailed a degradation strategy for Dynamic UMAP using memory-mapping (
zarr.open_array(mode='r')) to ensure the Python service doesn't OOM under concurrent loads, prioritizing the static 1M+ rendering and AI copilot as P0 deliverables.
I would highly appreciate any early feedback or corrections on this leaner, stateless approach whenever you have a moment!
Best, Zhengyang