If you use Molmil, please cite our Molmil paper.
- Rotate: hold left mouse button and drag
- Translate (x/y): (hold left+right mouse button, or hold scroll button, or hold left mouse button + shift key) and drag
- Zoom (z): hold right mouse button and drag
- Rotate around atom: left-click atom, then hold Ctrl while holding left mouse button and dragging to rotate
- Left-click on an atom to select, right-click to show a context menu
- Calculate distance between two atoms: Left click on first atom, Ctrl+left click on second atom
- Calculate angle between three atoms: Left click on first atom, Ctrl+left click on second atom, Ctrl+left click on third atom
- Calculate dihedral between four atoms: Left click on first atom, Ctrl+left click on second atom, Ctrl+left click on third atom, Ctrl+left click on fourth atom
-
Show list of files/chains/residues (Structures menu):
Left mouse click on the right-side menu (>>>), click on the files/chains to see the underlying chains/residues.
Right click on the files/chains/residues to modify the styling -
Toggle structures/chains:
Ctrl + left-click on a structure/chain in the Structures menu -
Show information about atom and show the styling menu (can be used to style corresponding residue/chain and display nearby residues): right click on any atom in the canvas
-
Open a file from the local drive:
Drag-and-drop files from the local drive into the Molmil window -
Save PNG:
Molmil menu -> Save -> PNG image -
Settings:
Molmil menu -> Settings (quality, loop/sheet smoothing, fog, projection mode, color scheme, background color) -
Slab:
Molmil menu -> Settings -> Slab -
Show Biological Unit:
Molmil menu -> View -> Configure BU (for structures that contain BU metadata) -
Animation (PDB model or MD trajectory):
Molmil menu -> Animation -
Full screen:
Molmil menu -> Enable full-screen -
WebVR:
Molmil menu -> Enable WebVR (on compatible platforms only) -
Show Command line interface:
- Molmil menu -> Toggle CLI
- "<" button in the bottom left corner
- Press ESC button twice in quick succession to toggle the CLI and move the cursor there (when showing the CLI)
-
Clear all loaded files:
Molmil menu -> Clear
(Refreshing the page also works) -
Toggle waters:
Open the Structures menu (top right >>>) -> click the 3 dots -> Show/Hide waters -
Toggle hydrogens:
Open the Structures menu (top right >>>) -> click the 3 dots -> Show/Hide hydrogens
-
Enable interface: Molmil menu -> Style IF
-
Change tabs In the Style IF panel, click [Style menu], and then choose one of the available options
-
Hide panel In the Style IF panel, click [Style menu], and then choose "Hide"
-
Resize panel In the Style IF panel in the bottom right corner, left-click and drag on the resize icon (diagonal line) and drag upwards to make the panel smaller and downwards to make it larger
- Right click on a file/chain/residue -> Label
- Any atom in the canvas -> Label -> Atom/Residue/Chain
Select atoms by using an expression: select _name_
, expression
expression
- name: select by atom name
- symbol: select by element name
- resn: select by residue name
- resi: select by residue id
- ss: select by secondary structure (h: helix, s: sheet, l: loop)
- chain: select by chain name
- hydro: select waters
- hetatm: select ligands
- backbone: select protein backbone atoms
- sidechain: select protein sidechain atoms
- model: select by filename/fileid
- and/or: combine multiple selections
examples:
- select carbon atoms:
select carbons, symbol C
- select the backbone heavy atoms:
select sidechain_12, resi 12 and sidechain
Color a group of atoms: color clr, atom-list/expression
clr can be either a colorname, a hex value (starting with #) or an rgb(a) value in the shape of [r, g, b, a], where r,g,b,a is an integer between 0-255
atom-list is either a _name_
object (defined by a select command) or an expression as used by a select command
Examples:
color red, sidechain_12
color red, resi 12 and sidechain
color [255, 255, 255], resi 12 and sidechain
Color the cartoon representation of a group of atoms: cartoon_color, atom-list/expression
Define a new named color: set_color _color_name_
, [r, g, b, a]
Show atoms: show _repr_, atom-list/expression
_repr_
: spheres, ball_stick, sticks, lines, cartoon, ca-trace, label
Hide atoms: hide _repr_, atom-list/expression
_repr_
: hydro, all, cartoon, snfg-icon, solvent, coarse-surface, spheres, ball_stick, sticks, lines, cell, label
Show file/model
enable model #1
enable file.pdb
Hide file/model
disable model #1
disable file.pdb
Rotate the camera/system: turn axis, degrees
axis: x, y, z
Translate the camera/system: move axis, Angstrom
axis: x, y, z
Translate a selection of atoms along an axis: translate [x,y,z], atom-list/expression
Fetch a PDB entry from PDBj: fetch pdbid
Fetch a chem_comp entry from PDBj: fetch comp_id
Fetch a specific chain from a PDB entry from PDBj: fetch entryId
Fetch an efsite entry from PDBj: efsite entryId
Load a file: load location, _options_
location can be either a file path on the local hdd (requires the local version of Molmil, cannot run via the web version), or a URL
_options_
is a comma-separated list of options, e.g. format=pdb,gzipped=1
, indicates that the file format is a gzipped pdb flat-file (molmil normally determines this from the file extension, but when loading a file that misses a file extension, e.g. when loading the output from a REST API, this information needs to be supplied)
Plays a trajectory: mplay
Stops playing a trajectory: mstop
Set the origin to a specific set of atoms: origin selection
Set various settings
Set the radius of the sticks for a group of atoms: set stick_radius, value, atom-list/expression
Enable fog: set depth_cue, 1
Disable fog: set depth_cue, 0
Settings:
stick_radius
floatdepth_cue
1/0cartoon_highlight_color
1/colorfield_of_view
floatorthoscopic
on/offlabel_bg_color
colorlabel_outline_color
colorlabel_color
colorlabel_border
on/offlabel_position
(dx,dy,dz)label_atom_center
all OR atom namelabel_size
floatlabel_front
1/0cartoon_smooth_loops
intall_states
on/offmovie_mode
forward/backward/swing/swing-onceedmap_sigma
floatmesh_color
colorsurface_color
colorcif_use_auth
on/offstereo_mode
10(anaglyph)/5(side-by-side)/2(cross-eyed)connect_cutoff
floatbackface_cull
1/0
Here, color is either a pre-configured color name, or an rgba array: [r,g,b,a], e.g. [255, 0, 0, 255] for red
Set the background color: bg_color color
Set a label to a set of atoms: label selection, label-name
Save the loaded structure: save file.pdb, selection, snapshot, format
Resize the viewport (screen size): viewport width, height
Recall or store a specific view: view key, action action: recall, store
Save the current view as "test": view test, store
Recall (restore) the view "test": view test
Resets the camera the default position and orientation (identity matrix, but zoomed out to show the molecules)
Finds a specific sequence: findseq sequence, selection, name
Delete a set of atoms: delete selection
Delete chain A: delete chain A
Fetch the electron density map of the loaded entry for a specific region: edmap selection, border
Show the electron density for all ligands and nearby region (5 A): edmap hetatm, 5
Select a specific frame (NMR-model / MD trajectory), starting from 1: frame modelId
Select 10th frame: frame 10
Create a bond between two atoms: bond selection1, selection2, bondOrder
Create a peptide bond between residue 32 and residue 1: bond resi 32 and name C and resi 1 and name N, 1
Set a stereo mode: stereo mode
Where mode is any of; off, crosseye, sidebyside, anaglyph
Enable sidebyside mode: stereo sidebyside
Focus the camera on a specific selection with optimized orientation: orient selection
Orient on chain A: orient chain A
Orient on whole system: orient
Alter properties of atoms: alter selection, setting=value
Set B-factor of residue: alter resi 32, b=0.5
Indicate the selection on the screen: indicate selection
Indicate chain A: indicate chain A
Output a PNG image to a file: png filename
Copy a PNG image onto the clipboard: png
Quick select representation Examples:
repr au
repr bu
Show style interface
Examples:
style-if structure
style-if bu
style-if edmap
style-if sites
style-if align
style-if settings
style-if hide
Superposes two chains
align struc1:chain1, struc2:chain2
align file1.pdb:A, file2.pdb:B
Exit molmil-app.