GSoC icon indicating copy to clipboard operation
GSoC copied to clipboard

Enhance 3D Protein Structure Viewer in cBioPortal using AlphaFold Data

Open jjgao opened this issue 10 months ago • 9 comments

Background

cBioPortal currently integrates a 3D protein structure viewer that maps cancer mutations onto protein models using sequence alignments against experimentally-determined structures (e.g., PDB) via the G2S service. However, this viewer is not fully functional today, and coverage is limited to proteins with available PDB entries. ([G2S])

Meanwhile, the AlphaFold Protein Structure Database provides predicted 3D structures for nearly all human proteins with high accuracy, dramatically increasing structural coverage far beyond experimentally solved structures. ([AlphaFold])

Integrating AlphaFold data into the cBioPortal 3D viewer would significantly improve mutation visualization and interpretation by enabling structure views for proteins currently missing PDB coverage.


Goal

Enable a fully functional and enriched 3D protein structure viewer in cBioPortal that:

  1. Retrieves and displays AlphaFold predicted models for human proteins (in addition to PDB structures).
  2. Maps cancer mutations, allele annotations, and variant features onto these structures.
  3. Update the current UI for users to explore both PDB and AlphaFold structures in the portal.
  4. (Optional) Ensures performance, caching, and appropriate model confidence display, including pLDDT/PAE metrics from AlphaFold.

Approach

1. Backend Enhancements in G2S

  • Add support for fetching or caching AlphaFold model files (e.g., mmCIF/PDB or API retrieval) for human proteins.
  • Store necessary metadata (UniProt accessions → AlphaFold models) in the portal database or external cache.
  • Extend or refactor existing alignment tables to reference both PDB and AlphaFold models.
  • Implement REST API endpoints to serve model coordinates and corresponding mutation mappings to the frontend.

2. Structure Alignment & Mapping Pipeline in G2S

  • Build/update an automated pipeline that:

    • Queries the AlphaFold database for available predictions for a given gene/protein.
    • Ensures reliable mappings between gene identifiers, protein sequences, and structure models.
    • Precomputes residue alignment ranges (sequence ↔ structure coordinates).
  • Handle multiple isoforms and alternative transcripts where applicable.

3. Frontend (React / TypeScript) in cBioPortal

  • Fix and update the current protein viewer (e.g., using NGLViewer, Mol*), supporting:
    • Loading both experimental (PDB) and predicted (AlphaFold) structures.
    • Color-coding regions by mutation density or confidence metrics (e.g., pLDDT per residue).
    • Displaying mutation “pins”, labels, and interactive exploration tools.
  • Handle error states gracefully (e.g., missing model, low confidence regions).

4. UX & Visualization Considerations

  • Display AlphaFold confidence metrics (e.g., pLDDT, PAE) visually (e.g., color gradients).
  • Add legends/info panels that explain structure source (experimental vs predicted).
  • Cache frequently retrieved models in the browser or CDN for performance.

Need Skills

  • Bioinformatics / Structural Biology: Understanding of protein structures, sequence alignment to structural coordinates, ability to interpret AlphaFold confidence metrics.
  • Backend Development (Java, Spring): Extend APIs and storage layers to serve structural data efficiently.
  • Frontend (React, TypeScript, WebGL): Integrate and customize interactive 3D viewer components.
  • Familiarity with protein data formats (PDB/mmCIF) and common structural viewers.

Resources

  • cBioPortal Frontend and Backend repos (Java, Spring Boot, React).
  • AlphaFold Protein Structure Database API and data download resources. ([AlphaFold])
  • g2s sequence alignment service currently used by the portal.
  • Existing 3D viewer integration / mutation mapping code in cBioPortal.

Possible Mentors

@onursumer @leexgh ...

jjgao avatar Feb 02 '26 17:02 jjgao

Interested.

Oolev avatar Feb 18 '26 00:02 Oolev

Hi Mentors,

I’m really interested to integrate AlphaFold into cBioPortal’s 3D protein viewer. I have a background in machine learning and cancer genomics, having worked on related ML projects. I’m proficient in React, Next.js, and I’ve also explored AlphaFold predictions, especially in drug discovery contexts. I’d love to contribute to the AlphaFold integration, particularly in enhancing structural coverage and confidence visualisation. Could you advise on the best entry points for contributing, especially on the backend API or structure alignment pipeline?

Thank you

the-jellyone avatar Feb 20 '26 08:02 the-jellyone

Hello Mentors im interested in the above I have a grasp on Bioinformatics and knowledge on protein folding.

MansonBruv avatar Feb 23 '26 19:02 MansonBruv

Hey everyone, after doing research in the AI-based protein folding prediction domain for a year now, during my final year of CS master's, I would be very interested to put my knowledge to use in extending the G2S project. However, I was wondering whether deep diving into the project is useful at the moment, considering the G2S removal discussion at #11920. @onursumer What is your opinion on that discussion? In case you consider the project still valuable, I would start ensuring proper starting conditions for the work by clearing #10945

Bekka592 avatar Mar 04 '26 10:03 Bekka592

Hello mentors.

My name is Dhanraj Rateria, a final year student at Ramaiah Institute of Technology. I am writing to express my strong interest in the AlphaFold 3D Protein Structure Integration project for GSoC 2026.

I’ve spent the last few days getting familiar with the cBioPortal architecture. I successfully set up the full stack locally via cbioportal-docker-compose and have been diving deep into the genome-nexus/g2s codebase. I’ve been analyzing how PdbDataServiceImpl.java currently fetches coordinates from the PDB, and how the pdb-alignment-pipeline utilizes BLAST for sequence alignment. I am currently outlining my proposal to introduce an AlphaFoldDataService fallback, and I’m particularly interested in designing a direct UniProt mapping pipeline that bypasses the heavy BLAST requirements of the legacy PDB workflow, while handling Ensembl-to-UniProt isoform mismatches. Since I am new to the organization and haven't submitted a PR yet, I wanted to ask a couple of quick questions:

Are there any specific issues (either in cbioportal, cbioportal-frontend, or g2s) you would recommend I tackle to get my hands dirty and demonstrate my coding ability before the deadline? Are there any specific edge cases regarding structural alignment or pLDDT confidence visualization that you highly recommend I address in my draft proposal? I look forward to learning from the community and contributing to the portal. Thank you for your time!

DhanrajRateria avatar Mar 14 '26 09:03 DhanrajRateria

Hello Mentors, I am currently working on reproducibility studiesand would very much like to contribute to this idea, I was thinking of the Nix expression language to replace Docker and upwards to the pipeline I would very much like to contribute to this,I am currently drafting a proposal.

MansonBruv avatar Mar 14 '26 09:03 MansonBruv

Hi Mentors,

This project is particularly exciting because integrating AlphaFold structures into cBioPortal would significantly expand structural coverage for mutation visualization. Since most human proteins lack experimentally solved PDB structures, relying only on PDB severely limits the usefulness of the current 3D viewer.

After reading about the current architecture, it seems the existing workflow relies on the G2S service to align protein sequences to PDB structures and map mutation coordinates onto structural residues. Extending this pipeline to AlphaFold models raises a few interesting implementation questions.

1. Structure sourcing and identifier mapping

AlphaFold models are indexed by UniProt accession, which suggests a simpler mapping pipeline compared to the existing PDB alignment workflow. One possible approach could be:

gene → transcript/protein sequence → UniProt accession → AlphaFold model

This could allow the system to fetch predicted structures directly from the AlphaFold DB (or a cached mirror) and bypass some of the heavier BLAST alignment steps required for PDB structures.

However, I’m curious how the portal currently handles multiple isoforms and transcript-specific mutations, since AlphaFold predictions generally correspond to the canonical UniProt sequence.

2. Residue coordinate mapping

For reliable mutation visualization, we need consistent mapping between:

genomic mutation → protein position → structure residue index

If AlphaFold structures follow the UniProt residue numbering, the mapping step might be simplified compared to PDB structures where gaps and missing residues are common.

I’m interested in exploring whether the current G2S alignment tables could be extended to include AlphaFold-derived mappings or whether a parallel lightweight mapping service would be more maintainable.

3. Frontend visualization

For the viewer itself, integrating AlphaFold structures could also introduce richer structural annotations:

  • color gradients based on pLDDT confidence
  • highlighting low-confidence / disordered regions
  • overlaying mutation density or hotspot clusters

Libraries like Mol* or NGLViewer should already support loading AlphaFold PDB/mmCIF files, so adapting the existing mutation overlay logic might be feasible with relatively small changes.

4. Performance considerations

Since AlphaFold structures are available for nearly all human proteins, caching strategies will likely be important. For example:

  • server-side caching of frequently requested models
  • CDN distribution of mmCIF/PDB files
  • lazy loading in the viewer

I’m currently reviewing the G2S repository and the existing 3D viewer integration in cbioportal-frontend to better understand the current mutation-to-structure mapping pipeline.

If there are recommended starting points in the codebase (particularly around the G2S alignment logic or the frontend viewer component), I would appreciate guidance on where contributors should begin exploring.

arnvptl avatar Mar 15 '26 14:03 arnvptl

Very interesting and worth deep diving

MaheshJethalia avatar Mar 18 '26 05:03 MaheshJethalia

Hi mentors, My name is Joy.O. Reuben, software engineering intern at Semicolon Africa. I am interested in the AlphaFold 3D Protein Structure Integration project for GSoC 2026. Rather than outlining what I plan to build, I have built a working prototype 🔗 Live Demo — StructureIQ: https://codesandbox.io/p/sandbox/structureiq-vfcw32 The demo fetches the AlphaFold structure for TP53 (P04637) from the EBI API, parses pLDDT scores from the mmCIF B-factor column, and displays all 6 clinical hotspot mutations with their confidence bands. Written in React and TypeScript. My proposal covers three areas:

  • Phase 1 — AlphaFold fallback when PDB coverage is insufficient
  • Phase 2 — Isoform alignment between Ensembl transcripts and UniProt canonical sequences using BioJava — a mapping error that causes silent wrong placement of mutation pins
  • Phase 3 — pLDDT confidence overlay on the frontend — demonstrated in the link above I have also looked at the G2S removal discussion in #11920 and designed my backend abstraction to work with or without G2S. Looking forward to contributing.

BluPearl-J avatar Mar 31 '26 05:03 BluPearl-J