jmvs

JMVS: Java Molecular Visualisation System

A RasMol-like 3D viewer for macromolecular structures, for macOS, Windows and Linux. Open a PDBx/mmCIF file, then rotate it, show it as balls, sticks, ribbons or cartoon, wrap it in a molecular surface, and colour it by element, chain, residue, secondary structure, B-factor or AlphaFold confidence. Open a cryo-EM density map with it to see how the model fits.

4hhb cartoon, chain
Cartoon
Haemoglobin (4hhb): helices as thick ribbons, coloured by chain
1usc cartoon, structure
Sheets with arrows
1usc in cartoon: strands end in arrowheads, coil is a tube
1bna cartoon, chain
DNA
B-DNA dodecamer (1bna): backbone tubes through the phosphates, a block per base
4hhb solvent-excluded surface, chain
Molecular surface
Haemoglobin (4hhb), solvent-excluded surface coloured by chain, built in about 0.25 s
4hhb ribbons under a transparent surface
Transparent surface over ribbons
Any display mode shows through a surface at 70% or 40% opacity
AlphaFold model, ribbons, pLDDT confidence
AlphaFold confidence
Predicted model in ribbons, coloured by pLDDT in the AlphaFold DB bands, with a legend
1aon balls, chain
Balls, at scale
GroEL–GroES (1aon): 58,870 atoms in 35 chains, rotating smoothly
AlphaFold model without annotation, ribbons, computed secondary structure
Computed secondary structure
Ribbons of an AlphaFold model with no annotation in the file: helices and turns assigned from backbone hydrogen bonds
cryo-EM map EMD-3488 as a mesh around the 5me2 model in sticks
Cryo-EM density map
Haemoglobin at 3.2 Å (EMD-3488) as a mesh around its fitted model (5me2), coloured by the nearest chain; the contour level is adjustable
3nir sticks, CPK
Sticks
Crambin at 0.48 Å (3nir) with its hydrogens in white
1d3z ribbons, structure
NMR ensembles
Ubiquitin (1d3z): all 10 NMR models overlaid
1crn balls, B-factor
B-factor
Crambin coloured by B-factor, from blue (low) to red (high)

Click a picture for the full-size screenshot. All structures are in data/.

Features

Display

Structures

Interaction

Performance

Installing

Download the installer for your OS from the latest release: .dmg (macOS), .msi (Windows) or .deb (Debian/Ubuntu). They include Java, so nothing else is needed.

The installers are not signed. On macOS, if JMVS “cannot be opened”, go to System Settings > Privacy & Security and choose Open Anyway (or run xattr -dr com.apple.quarantine /Applications/JMVS.app). On Windows, choose More info then Run anyway if SmartScreen warns about the installer.

Building and running

You need any JDK from 17 to 27 to run Gradle; Gradle downloads the JDKs it compiles with.

To build and test:

./gradlew build

To run (optionally with a file; you can also use File > Open or drop a file on the window):

./gradlew :jmvs-app:run --args="data/1crn.cif"

Controls: left-drag rotates, right-drag or scroll zooms, middle-drag or Shift+left-drag pans, click selects an atom, R resets the view, Esc clears the selection, [ and ] lower and raise a density map’s contour (Shift for bigger steps).

Options choose the view from the command line, or render one screenshot or measure the frame rate and exit:

jmvs [file] [map] [--mode <id>] [--scheme <id>] [--ss auto|file|computed] [--surface ses|sas]
     [--surface-opacity <0-1>] [--map <file>] [--contour <level>|<n>sigma] [--map-style surface|mesh]
     [--map-opacity <0-1>] [--screenshot <png>] [--benchmark <seconds>]

Mode ids are balls, sticks, ballsandsticks, ribbons and cartoon; scheme ids are cpk, chain, group, structure, bfactor and confidence. --ss chooses where secondary structure comes from: the file’s annotation if it has any (auto, the default), the file only, or computed. For example, after ./gradlew :jmvs-app:installDist:

jmvs-app/build/install/jmvs/bin/jmvs data/4hhb.cif --mode ribbons --scheme chain --surface ses --screenshot 4hhb.png
jmvs-app/build/install/jmvs/bin/jmvs data/5me2.cif data/emd_3488.map.gz --mode sticks --scheme chain --contour 0.09

A file ending in .map, .mrc or .ccp4 (optionally .gz) opens as a density map; the contour starts at 2.5σ.

To build a native installer with a bundled Java runtime (.dmg, .msi or .deb for the current OS):

./gradlew :jmvs-app:jpackage

Documentation

History

JMVS began in 1999 as a Computer Science dissertation: a RasMol-like viewer in Java3D. It was reworked in 2003 and 2022, and in 2026 it was modernised onto Java 25 and libGDX with AI assistance. LEGACY.md has the full story, how the modernisation was done, and side-by-side screenshots against the 2022 version. The original app is kept in legacy-app/.