CLI Reference¶
Full flag reference for xyzrender. See also xyzrender --help.
Input / Output¶
Flag |
Description |
|---|---|
|
Input file ( |
|
Static output path ( |
|
Embed a SMILES string into 3D (requires rdkit: |
|
Record index in multi-molecule SDF (default: 0) |
|
Ignore file connectivity; re-detect bonds with xyzgraph |
|
Molecular charge |
|
Spin multiplicity |
|
Input coordinates are in Bohr (force conversion to Angstrom) |
|
Config preset ( |
|
Debug logging |
Styling¶
Flag |
Description |
|---|---|
|
Canvas size in px (default: 800) |
|
Atom radius scale factor |
|
Bond stroke width |
|
Atom outline stroke width |
|
Bond color (hex or named) |
|
Bond edge stroke color (default: black) |
|
Bond edge stroke width in px (0 = off) |
|
Hide all bonds (e.g. space-filling style) |
|
Hide bonds by rule or index*. |
|
Force-show/add bonds: 1-indexed pairs ( |
|
Replace pi-coordination bond fans with single centroid bonds (dotted). Inherits overlay / ensemble colour from the metal atom |
|
Per-atom fill opacity (repeatable), e.g. |
|
Background color |
|
Transparent background |
|
Radial gradient toggle |
|
Atom gradient strength (default: 1.0) |
|
Cylinder shading on bonds (3D tube look) |
|
Bond cylinder gradient strength (default: 0.3) |
|
Depth fog strength |
|
Depth fog toggle |
|
Bond order rendering toggle |
|
Color bonds by endpoint atom colors |
|
Scale selected atoms (repeatable). Multiplies on top of |
|
Render atom subset with a different style (repeatable). Selectors: indices |
|
Hue gradient contrast (advanced; default per preset) |
|
Lightness gradient contrast (advanced) |
|
Saturation gradient contrast (advanced) |
|
Override all element label colours in |
*— categories (M, sbm, L, het, hal, pnic, chal, noble, triel, tetrel), pair specs (M-L, Fe-het, M-hal), pi-coordination (M-pi, pi), element (Li), atom index (2), or pair (1-3). Comma or space separated.
Display¶
Flag |
Description |
|---|---|
|
Show H atoms (no args = all, or indices like |
|
Hide all H atoms |
|
Render only selected atoms before orientation/canvas fitting. Repeatable; same selector grammar as |
|
Remove selected atoms before orientation/canvas fitting. Repeatable; same selector grammar as |
|
Use Kekulé bond orders (no aromatic 1.5) |
|
vdW spheres (no args = all, or selectors like |
|
vdW sphere opacity (default: 0.25) |
|
vdW sphere radius scale |
|
vdW sphere gradient strength (default: 1.6) |
|
Render the |
|
Render primary atom spheres as interlocked silhouettes; the |
|
vdW overlay outline width (default: 0 = no outline) |
|
vdW overlay outline colour |
|
H-atom radius scale (primary atoms; default: 0.6) |
|
H-atom radius scale on the |
|
Flat color for all atoms and bonds (overrides CPK). Highlight paints on top |
|
Highlight atom group. Accepts the same selectors as |
|
Depth-of-field blur (does not affect bonds/lines) |
|
DoF max blur strength (default: 3.0) |
|
Add blurred glow under selected atoms (same selector grammar as |
|
Glow blur strength (default: 5.0) |
Orientation¶
Flag |
Description |
|---|---|
|
Interactive rotation (see |
|
Viewer backend for |
|
Auto-orientation toggle |
|
Save/load orientation reference ( |
Transition states / NCI graph overlay¶
These flags draw graph-detected bond overlays (dashes / dots) on top of the molecular skeleton. The volumetric NCI surface (--nci-surf) is documented in the Surfaces section below.
Flag |
Description |
|---|---|
|
Auto-detect TS bonds via graphRC |
|
TS reference frame (0-indexed) |
|
Manual TS bond pair(s) (1-indexed, e.g. |
|
Colour for dashed TS bonds (hex or named); overrides |
|
Atom-coloured halves on TS dashes |
|
TS dash length,gap as bond-width multiples (default |
|
TS line width as a bond-width multiple (default |
|
Auto-detect NCI interactions (graph topology, not the volumetric surface — see |
|
Manual NCI bond pair(s) (1-indexed) |
|
Colour for dotted NCI/haptic bonds (hex or named); overrides |
|
Atom-coloured halves on NCI/haptic dots (on in pmol/btube/tube/mtube) |
|
NCI/haptic dot length,gap as bond-width multiples (default |
|
NCI/haptic line width as a bond-width multiple (default |
Surfaces¶
Flag |
Description |
|---|---|
|
Render MO lobes from |
|
MO lobe colors (hex or named) |
|
Outline stroke per lobe (solid style only; pair with |
|
Outline color (default: black) |
|
MO Gaussian blur sigma (default: 0.8, advanced) |
|
MO contour upsample factor (default: 3, advanced) |
|
Disable depth-fog colour blend on MO lobes (textbook flat colours) |
|
Render density isosurface from |
|
Density surface color (default: |
|
ESP cube file for potential coloring (implies |
|
Interaction surface cube — auto-classified as |
|
NCI surface coloring: |
|
Isosurface threshold. Defaults: MO |
|
Surface opacity multiplier (default: 1.0; >1 boosts) |
|
Surface rendering style: |
Convex hull / faces / pore¶
Flag |
Description |
|---|---|
|
Draw convex hull (no args = all heavy atoms; |
|
Hull fill color(s) (hex or named, one per subset) |
|
Hull fill opacity (0–1) |
|
Ring colouring: |
|
Draw/hide non-bond hull edges (default: on) |
|
Hull edge stroke width as fraction of bond width (default: 0.4) |
|
Minimum ring size for |
|
Maximum ring size for |
|
Planarity tolerance for 3D face detection: 0 = strict, 1 = permissive (default: 0.25) |
|
Detect pore cavities and draw inscribed sphere(s) |
|
Pore sphere colour (default: warm yellow) |
|
Pore sphere opacity (default: 0.5) |
Structural overlay / ensemble¶
Flag |
Description |
|---|---|
|
Second structure to overlay (RMSD-aligned onto the primary). Different atom counts handled via shared-scaffold alignment |
|
Overlay atom colour (bonds auto-darkened 30 %) |
|
Transparency 0–1. Applied to the overlay when |
|
Absolute atom radius scale for the overlay only (mirrors |
|
Absolute bond width for the overlay only |
|
Hide bonds on the overlay only (same grammar as |
|
Force-show / add bonds on the overlay only (1-indexed, overlay-local) |
|
Render only these overlay atoms (same selector grammar as |
|
Run graphRC TS detection on the overlay (mirrors |
|
Manual TS bond pair(s) on the overlay, 1-indexed in the overlay’s atom list |
|
Force / skip Kabsch/MCS alignment for |
|
Ensemble overlay for multi-frame XYZ trajectories; conformers default to CPK atom colours |
|
Palette name ( |
|
Alignment candidates for |
Fine-grained overlay style (atom_stroke_width, atom_stroke_color, bond_color, bond_outline_*) lives in preset JSON or OverlayConfig only — not exposed as CLI flags.
Annotations¶
Flag |
Description |
|---|---|
|
Print bond measurements to stdout ( |
|
Atom index labels in SVG ( |
|
Inline SVG annotation (repeatable); 1-based indices |
|
Bulk annotation file (same syntax as |
|
Label font size (overrides preset) |
|
Stereochemistry labels from 3D geometry. Optional comma-separated class filter: |
|
R/S label placement: |
|
Per-atom property colormap (1-indexed atom index, value) |
|
Explicit colormap range (default: auto from file) |
|
Symmetric colormap range about zero: `[-max( |
|
Shared scalar palette override ( |
|
Add a vertical colorbar on the right for |
Vector arrows¶
Flag |
Description |
|---|---|
|
Path to a JSON file defining 3D vector arrows for overlay |
|
Global length multiplier for all vector arrows |
GIF animations¶
Flag |
Description |
|---|---|
|
Rotation GIF (default axis: |
|
Bounce rotation: starts at the original orientation, then rotates to |
|
TS vibration GIF (via graphRC) |
|
Trajectory / optimisation GIF (multi-frame input) |
|
Re-detect bonds for every frame (NEB-TS MEPs and other trajectories with changing connectivity) |
|
Diffuse / assembly GIF — atoms scatter and reassemble |
|
Number of diffuse frames (default: 60) |
|
Per-frame random walk noise (default: 0.3) |
|
Bond visibility during diffuse (default: |
|
Add partial rotation during diffuse (default: 180°) |
|
Play forward (molecule → noise) instead of assembly |
|
Atoms that stay fixed during |
|
GIF output path (default: |
|
Frames per second (default: 10) |
|
Rotation frame count (default: 120) |
|
Vibration frames for |
Available rotation axes: x, y, z, xy, xz, yz, yx, zx, zy. Prefix - to reverse (e.g. -xy). For crystal inputs, a 3-digit Miller index string is also accepted (e.g. 111, 001).
Crystal / unit cell¶
Flag |
Description |
|---|---|
|
Draw unit cell box from |
|
Cell edge color (hex or named, default: |
|
Unit cell box line width (default: 1.5) |
|
Hide the unit cell box |
|
Show/hide ghost (periodic image) atoms outside the cell |
|
Opacity of ghost atoms/bonds (default: 0.5) |
|
Show/hide the a/b/c axis arrows |
|
Orient looking down a crystallographic direction (e.g. |
|
Repeat the unit cell |