Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>BioViewerNew to Visual Studio Code? Get it now.
BioViewer

BioViewer

shuuul

|
378 installs
| (0) | Free
VSCode Extension for visualizing Biological Macrostructures and Electron Imaging.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

BioViewer

Version Installs License: MIT Pre-commit: prek

A powerful Visual Studio Code extension for visualizing biological structures and electron microscopy maps. Built on Mol*, BioViewer brings advanced molecular visualization directly into your development environment.

A cryo-EM map with its fitted model in BioViewer

✨ Key Features

  • 🧭 Focused Viewer Interface: An objects list and a per-object inspector (representation, color, opacity, focus) built with MolStudio, replacing the full Mol* control panels; follows the VS Code light/dark theme and display language
  • 🔁 Classic Mol Viewer*: Switch back to Mol*'s full plugin interface with the bioviewer.viewer setting; it also follows the VS Code light/dark theme
  • 🖼️ Publication Image Export: Export PNG, TIFF, or JPEG at a chosen physical size and PPI, saved through the VS Code save dialog
  • 🗺️ Electron Microscopy Maps: Full support for MRC, MAP, and CCP4 volume files with proper visualization
  • 🌐 Remote SSH Ready: Files are sent to the viewer as raw bytes, and .gz files stay compressed until the viewer unpacks them
  • 📦 Compression Support: Automatic .gz file handling saves bandwidth - especially valuable for remote connections
  • 🧬 Multiple Formats: PDB, mmCIF, and all standard structural biology file formats
  • 📍 Marker Overlays: Chimera .cmm marker models render prompt points and marker links on top of loaded maps or structures
  • 🔗 Database Integration: Direct access to PDB, AlphaFold, and EMDB databases

📸 Screenshots

Protein, RNA and DNA of Cas9 in one BioViewer tab

Imatinib in its Abl kinase binding pocket, in the VS Code light theme

🚀 Installation

  1. Open Visual Studio Code
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "BioViewer"
  4. Click Install

📖 Usage

Commands (Command Palette: Ctrl+Shift+P / Cmd+Shift+P)

Command Description
BioViewer: Open Structure from Database Load from PDB, AlphaFold, or EMDB
BioViewer: Open Files Open selected files in new tab
BioViewer: Open Folder Load all supported files from directory
BioViewer: Add Files to Current Tab Add files to active tab
BioViewer: Add Folder to Current Tab Add all supported files from directory to active tab

Settings

Setting Values Description
bioviewer.viewer studio (default), classic studio is the focused objects-and-display interface; classic is Mol*'s own viewer with its full control panels. Applies to tabs opened after the change.

Supported Formats

Type Extensions
Structures .pdb, .cif, .mmcif, .mcif, .ent
Volume Maps .mrc, .map, .ccp4
Small Molecules .sdf, .sd, .mol, .mol2, .pdbqt
Marker Models .cmm
Compressed All above formats with .gz compression

CMM Marker Models

BioViewer supports Chimera marker model files (.cmm and .cmm.gz) as marker overlays. A CMM file contains one or more <marker_set> elements (several sets are wrapped in <marker_sets>), each with one or more direct <marker> children:

<marker_set name="example_prompt">
  <marker id="1" x="59.4500" y="95.1850" z="24.3564" r="1.0" g="0.0" b="0.0" radius="1.0" />
</marker_set>

Required marker attributes are id, x, y, and z. Optional radius, r, g, and b attributes control sphere size and color. Direct <link id1="..." id2="..."> children are supported when both marker ids exist; links render as tubes. Marker ids and links are scoped to their <marker_set>; each set loads as its own object, named <set name> · <file> when a file has several. CMM coordinates are rendered as stored so prompt points can be overlaid on matching MRC/MAP/CCP4 density maps without replacing the map.

Quick Start

Right-click any supported file in VS Code Explorer → "BioViewer: Open Files"

🌐 Remote Development

BioViewer is optimized for remote SSH scenarios:

  • Bandwidth Efficient: .gz files stay compressed during transfer
  • Smart Decompression: Files decompress in browser, not on server
  • Compressed Transfer: Uncompressed files over 1 MB are gzipped on the remote host before they cross the network
  • Large File Handling: Files are passed to the viewer as raw bytes, without base64 re-encoding

⚙️ Requirements

  • Visual Studio Code ^1.128.0 (aligned with current Cursor Extension API)
  • Modern web browser (for WebGL support)

🙏 Acknowledgments

This extension was inspired by molstar/VSCoding-Sequence and builds upon the powerful Mol* molecular visualization library.

Key Dependencies:

  • Mol* (v5.13.1) - The core molecular visualization engine
  • MolStudio - The viewer interface on top of Mol*
  • PDBe & RCSB PDB - Structural databases
  • AlphaFold - AI protein structure predictions
  • EMDB - Electron Microscopy Data Bank

🛠️ Development

git clone https://github.com/shuuul/bioviewer.git
cd bioviewer
npm install
prek install      # Install git pre-commit hooks
npm run watch    # Development mode
npm run compile  # Production build

BioViewer uses prek to run pre-commit checks (linting, type checks, and file hygiene hooks) before commits.

🐞 Debugging in VS Code

  1. Open this repository in VS Code and run npm install.
  2. Start debugging with F5 (or Run and Debug) using the Run Extension launch configuration.
  3. VS Code opens an Extension Development Host window; run BioViewer commands there to reproduce issues.
  4. Set breakpoints in src/**/*.{ts,tsx} (source maps map to dist/**/*.js).
  5. Check extension logs in Output panel -> BioViewer.
  6. For webview issues, run Developer: Toggle Developer Tools in the Extension Development Host and inspect console errors.
  7. To debug tests, run npm run compile-tests and launch Extension Tests.

📄 License

MIT License - see LICENSE file for details.

🆘 Support

  • Documentation
  • Issues
  • Releases

Made with ❤️ for the structural biology community

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft