About MCPymol
MCPymol is an MCP server published by chemrich in the Healthcare category: mcp server for pymol for conversational protein display. Conduid read 135 tools from its source: align, alter, alter_state, altloc_view, angle, as and 129 more. No package is published for it, so it installs from a source checkout.
The repository has 17 stars and 1 forks, and its last commit was on 29 Nov 2026. Conduid has no tagged release on record for it. Its topics include healthcare.
Install
git clone https://github.com/chemrich/MCPymolTools (135)
alignAligns one selection to another| Parameter | Type | Description |
|---|---|---|
| mobile * | string | Selection to move. |
| options | string | Extra arguments, e.g. ``cycles=0`` to disable outlier rejection. |
| target | string | Selection to align onto; this one stays put. |
alterAlters atomic properties in a selection| Parameter | Type | Description |
|---|---|---|
| expression * | string | Assignment over atom properties, e.g. ``b=0``, ``chain='B'``, ``resi=str(int(resi)+100)``. |
| selection * | string | Atoms to modify. |
alter_stateAlters atomic coordinates in a state| Parameter | Type | Description |
|---|---|---|
| expression * | string | Assignment over coordinates, e.g. ``x=x+10``. |
| selection * | string | Atoms to modify. |
| state * | string | State to modify. |
altloc_viewShow every altloc group at once, one colour per group, occupancies labelled.| Parameter | Type | Description |
|---|---|---|
| label | boolean | Label each alternate location with its occupancy value (default True) |
| obj_name * | string | PyMOL object name (e.g. "1ejg") |
angleMeasures the angle between three selections and returns it in degrees.| Parameter | Type | Description |
|---|---|---|
| name | string | Name for the angle object. |
| selection1 | string | First selection (one arm). |
| selection2 | string | Second selection (the vertex). |
| selection3 | string | Third selection (the other arm). |
asShows one representation while hiding all others for the specified selection| Parameter | Type | Description |
|---|---|---|
| representation * | string | The one representation to leave visible: ``cartoon``, ``sticks``, ``spheres``, ``surface``, ``lines``, ``ribbon``, ``dots``, ``mesh``. |
| selection | string | PyMOL selection string, e.g. "1abc and chain A". See the module note for syntax. |
atom_propertiesReads per-atom properties, which nothing else in the tool set can reach.| Parameter | Type | Description |
|---|---|---|
| max_atoms | integer | How many atoms to list. Any omitted are counted. |
| properties | string | Comma-separated PyMOL atom properties. Common ones: chain, resi, resn, name, elem, b (B-factor or pLDDT), q (occupancy), alt (altloc), formal_charge, partial_charge, ss, segi, index. Each one is evaluated as a Python expression per atom inside PyMOL, so pass property names, not text from an untrusted source. |
| selection * | string | Atoms to read, e.g. "1hsg and chain A and resi 25". Narrow this: a whole protein is thousands of atoms. |
backwardGoes back one framebfactor_viewColors the structure by crystallographic B-factor (temperature factor).| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
bondCreates a bond between two atoms| Parameter | Type | Description |
|---|---|---|
| atom1 * | string | First atom, as a selection matching exactly one atom. |
| atom2 * | string | Second atom, as a selection matching exactly one atom. |
| order | string | Bond order: ``1`` single, ``2`` double, ``3`` triple, ``4`` aromatic. |
cartoonSets the cartoon type for the specified selection| Parameter | Type | Description |
|---|---|---|
| item_type * | string | Cartoon style: ``automatic``, ``tube``, ``loop``, ``rectangle``, ``oval``, ``arrow``, ``dumbbell``, ``putty``, ``skip``. ``tube`` ignores secondary structure and runs unbroken through the backbone. |
| selection | string | PyMOL selection string, e.g. "1abc and chain A". See the module note for syntax. |
cdChanges the current directory| Parameter | Type | Description |
|---|---|---|
| path * | string | Directory to change into. PyMOL resolves relative paths from here. |
centerCenters the view on a selection| Parameter | Type | Description |
|---|---|---|
| selection | string | What to centre the camera on. |
cinematic_viewConfigures PyMOL for a depth-cued, cinematic look with dramatic lighting.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
clipAdjusts the clipping planes| Parameter | Type | Description |
|---|---|---|
| distance | string | How far to move the plane, in Angstrom. Negative moves the other way. |
| mode * | string | Which plane to move: ``near``, ``far``, ``move`` (both), ``slab``, ``atoms``. |
colorSets the color for a selection.| Parameter | Type | Description |
|---|---|---|
| color_name * | string | A PyMOL color. Common names: ``red``, ``blue``, ``green``, ``yellow``, ``magenta``, ``cyan``, ``orange``, ``salmon``, ``marine``, ``forest``, ``palegreen``, ``skyblue``, ``violet``, ``grey50``, ``white``, ``black``. Use ``atomic`` to color non-carbon atoms by element while leaving carbons untouched. |
| selection | string | PyMOL selection string. |
composition_viewColour parts of a structure by the fraction of particles containing them.| Parameter | Type | Description |
|---|---|---|
| label | boolean | Write each part's presence fraction next to it |
| obj_name * | string | The object the table's selections apply to |
| table * | string | Presence fractions, inline as "chain A=0.4, chain B=1.0" or a path to a file of selection<TAB>fraction lines |
| transparency | boolean | Also make rarely-present parts transparent in proportion, so half-present reads as half there |
conservation_viewColors the structure by evolutionary conservation using Shannon entropy.| Parameter | Type | Description |
|---|---|---|
| chain | string | Specific chain ID to analyze. If None, uses the first protein chain found. |
| force_refresh | boolean | If True, bypass the cache and re-fetch the MSA from the MMseqs2 server even if scores are cached. |
| obj_name * | string | PyMOL object name (e.g. "1ubq") |
| scale | string | Color scaling mode. "relative" (default) maps the color gradient to the actual min/max entropy range of this protein, maximizing visual contrast. "absolute" uses the full theoretical entropy range (0 to log2(20)), useful when comparing conservation across different proteins. |
| selection | string | PyMOL selection to analyze (default "all") |
| server_url | string | Override the MMseqs2 server URL (defaults to ColabFold public API, or MCPYMOL_MMSEQS_URL env var) |
| use_env | boolean | Search environmental databases in addition to UniRef (default True, gives deeper MSAs) |
contact_reportLists the residues in contact across two selections, with distances and types.| Parameter | Type | Description |
|---|---|---|
| cutoff | number | Maximum heavy-atom separation to count as a contact, in Angstrom. 4.0 captures the interactions above; raise toward 5.0 for a looser survey. |
| include_water | boolean | Include waters, for water-mediated contacts. Off by default, as ordered waters otherwise dominate the list. |
| max_pairs | integer | How many residue pairs to list, closest first. The count of any omitted pairs is always reported. |
| selection1 * | string | One side, e.g. "1hsg and resn MK1" (a ligand). |
| selection2 * | string | The other side, e.g. "1hsg and polymer". |
count_atomsCounts the atoms matching a selection.| Parameter | Type | Description |
|---|---|---|
| selection | string | PyMOL selection string to count. |
createCreates a new object from a selection| Parameter | Type | Description |
|---|---|---|
| name * | string | Name for the new object. |
| selection | string | Atoms to copy into it. The original is left in place. |
| source_state | string | State to copy from. |
crosslink_viewHighlights structural cross-links: disulfide bonds, metals, and their coordination.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
deformation_viewColour and arrow a model by how far each residue moved between two states.| Parameter | Type | Description |
|---|---|---|
| arrow_scale | number | Multiply arrow length; above 1.0 this is an exaggeration and is labelled as one |
| arrows | boolean | Draw CGO arrows from each residue's start to its end position |
| as_putty | boolean | Also scale cartoon tube width by displacement |
| end_state | integer | The state to measure displacement to (defaults to the last) |
| max_arrows | integer | Ceiling on arrows drawn; anything dropped is reported |
| obj_name * | string | A multi-state object whose states are conformations |
| preserve_bfactors | boolean | Stash the original B-factors before overwriting them (default True) |
| start_state | integer | The state to measure displacement from |
| uncertainty_path | string | Path to a 'chain resi value' table of half-set uncertainty; colours the arrows when supplied |
deleteDeletes objects or selections| Parameter | Type | Description |
|---|---|---|
| name * | string | Object or named selection to delete. Accepts wildcards, e.g. ``tmp*``; ``all`` clears everything. |
density_viewDraw an isomesh around a selection, stating the contour level in both units.| Parameter | Type | Description |
|---|---|---|
| carve | number | Carve radius in Ångström around the selection (default 2.0) |
| level | number | Contour level. If omitted, 1.5 sigma is used and labelled as generic. |
| map_obj * | string | A volume already loaded through the load_map tool |
| name | string | Mesh object name (defaults to "<map_obj>_mesh") |
| selection * | string | PyMOL selection to carve the mesh around (e.g. "chain A") |
| units | string | Units of `level`: "sigma" (what PyMOL contours in) or "absolute" (what EMDB publishes). An absolute level is converted. |
deselectClears the current selectiondihedralMeasures the dihedral (torsion) angle between four selections, in degrees.| Parameter | Type | Description |
|---|---|---|
| name | string | Name for the dihedral object. |
| selection1 | string | First atom of the torsion. For a backbone phi angle this is the preceding C. |
| selection2 | string | Second atom; the first of the two forming the rotatable bond. |
| selection3 | string | Third atom; the second of the two forming the rotatable bond. |
| selection4 | string | Fourth atom, at the far end of the torsion. |
distanceMeasures the distance between two selections and returns it in Angstrom.| Parameter | Type | Description |
|---|---|---|
| name * | string | Name for the distance object (used to delete/recolor later). |
| selection1 * | string | First selection. |
| selection2 * | string | Second selection. |
drawUses OpenGL renderer (faster but lower quality)| Parameter | Type | Description |
|---|---|---|
| height | string | Image height in pixels. |
| width | string | Image width in pixels. |
electrostatic_viewColors the molecular surface by approximate residue-based electrostatics.| Parameter | Type | Description |
|---|---|---|
| mode | string | Charge assignment strategy. "atomic" (default) — charges assigned only to terminal charged atoms (e.g. ARG NH1/NH2/NE, LYS NZ, ASP OD1/OD2, GLU OE1/OE2, HIS ND1/NE2). Produces localized color at charge centers with natural falloff to white. "residue" — charges assigned uniformly to all atoms in each charged residue. Produces saturated patches; useful for quickly locating charged regions. |
| obj_name * | string | PyMOL object name (e.g. "1abc") |
ensemble_spread_viewColour and thicken a multi-state object by how much its states disagree.| Parameter | Type | Description |
|---|---|---|
| as_putty | boolean | Render as a putty cartoon so spread reads as tube width as well as colour (default True) |
| obj_name * | string | Multi-state PyMOL object name (e.g. an NMR or EM ensemble) |
execute_pymol_commandExecutes a raw PyMOL command string (PyMOL CLI syntax). PREFER the dedicated tools when one| Parameter | Type | Description |
|---|---|---|
| command * | string | A PyMOL command line, e.g. `set ray_shadow, 0`. Lines starting with `/` and `python ... python end` blocks run as Python inside PyMOL. |
extractExtracts a selection to a new object| Parameter | Type | Description |
|---|---|---|
| name * | string | Name for the new object. |
| selection | string | Atoms to move into it. Unlike create, these are *removed* from the original object. |
fabCreates a peptide chain from a sequence| Parameter | Type | Description |
|---|---|---|
| options | string | Extra arguments, e.g. ``ss=1`` to build it as a helix. |
| sequence * | string | One-letter amino acid sequence, e.g. "ACDEFGH". |
fetch_alphafoldFetches a predicted structure from AlphaFold DB by UniProt accession.| Parameter | Type | Description |
|---|---|---|
| fragment | integer | Fragment number for long proteins split across models (F1, F2, …). Most entries only have F1. |
| model_version | integer | Pin a specific AlphaFold model version. Leave unset (the default) to use whichever version the database currently serves — old versions are retired and stop resolving. |
| obj_name | string | Optional custom name for the object in PyMOL. |
| replace | boolean | Clear the session first, so this is the only structure loaded. Pass False to add to what is already loaded — which is how you get two structures into one session for superposition_view. |
| uniprot_id * | string | UniProt accession (e.g. "P69905" for human haemoglobin alpha). An "AF-" prefix is accepted and stripped. |
fetch_structureFetches a protein structure from the PDB, or a predicted model from AlphaFold DB.| Parameter | Type | Description |
|---|---|---|
| multimer_cutoff | number | Distance (A) between chains to keep them in the same multimer. Default 8.0A is suitable for most functional assemblies. |
| obj_name | string | Optional custom name for the object in PyMOL |
| pdb_code * | string | 4-letter PDB code (e.g. "1abc"), or an AlphaFold identifier (e.g. "P69905", "af-P69905"). |
| replace | boolean | Clear the session first, so this is the only structure loaded. Pass False to add to what is already loaded — which is how you get two structures into one session for superposition_view. |
forwardAdvances one framefragmentLoads a molecular fragment| Parameter | Type | Description |
|---|---|---|
| name * | string | Built-in fragment name, e.g. "benzene", "ala", "formamide". |
frameSets or queries the current frame| Parameter | Type | Description |
|---|---|---|
| frame_number | string | Frame to jump to. Omit to query the current frame. |
full_screenToggles fullscreen modeget_sequenceReturns the amino-acid sequence of a loaded structure, in FASTA.| Parameter | Type | Description |
|---|---|---|
| chain | string | Chain to extract. Omit for every chain in the object. |
| obj_name * | string | PyMOL object (e.g. "1hsg"). |
h_addAdds hydrogens to a selection| Parameter | Type | Description |
|---|---|---|
| selection | string | Where to add hydrogens. |
h_fillFills open valences on the currently picked atom with hydrogens.helpShows help for a command| Parameter | Type | Description |
|---|---|---|
| command | string | PyMOL command to describe. Omit for general help. |
hideHides a graphical representation for a given selection.| Parameter | Type | Description |
|---|---|---|
| representation * | string | Same vocabulary as :func:`show`, plus ``everything`` to hide all reps for the selection. |
| selection | string | PyMOL selection string. |
hydrophobic_surface_viewColors the molecular surface by amino acid hydrophobicity.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
interface_reportMeasures how large a protein-protein interface is, and which residues form it.| Parameter | Type | Description |
|---|---|---|
| chain_a * | string | First chain ID (e.g. "A"). |
| chain_b * | string | Second chain ID (e.g. "D"). |
| max_residues | integer | How many of the most-buried residues to list per chain. |
| obj_name * | string | PyMOL object holding the complex (e.g. "1brs"). |
interface_viewHighlights the protein-protein binding interface between two chains.| Parameter | Type | Description |
|---|---|---|
| chain_a * | string | First chain ID (e.g. "A") |
| chain_b * | string | Second chain ID (e.g. "B") |
| obj_name * | string | PyMOL object name (e.g. "1abc") |
intra_fitFits all states within an object| Parameter | Type | Description |
|---|---|---|
| selection * | string | Object whose states to fit onto its first state. |
intra_rmsCalculates RMSD between states within an object| Parameter | Type | Description |
|---|---|---|
| selection * | string | Object whose states to compare. |
isomeshCreates a mesh isosurface| Parameter | Type | Description |
|---|---|---|
| level * | string | Contour level in sigma, e.g. ``1.0`` for 2Fo-Fc density. |
| map_object * | string | Name of a loaded map (e.g. a CCP4 or DX density map). |
| name * | string | Name for the mesh object. |
| selection | string | Restrict the mesh to the region around this selection. |
isosurfaceCreates a solid isosurface| Parameter | Type | Description |
|---|---|---|
| level * | string | Contour level in sigma. |
| map_object * | string | Name of a loaded map. |
| name * | string | Name for the surface object. |
| selection | string | Restrict the surface to the region around this selection. |
labelAdds labels to atoms in the selection| Parameter | Type | Description |
|---|---|---|
| expression | string | Python expression over atom properties, e.g. ``"%s%s" % (resn, resi)`` or ``resi``. |
| selection * | string | Atoms to label. Use ``name CA`` to get one label per residue rather than one per atom. |
latent_traverse_viewStep through an ensemble's conformations as a contoured trajectory.| Parameter | Type | Description |
|---|---|---|
| build_movie | boolean | Wire the frames to PyMOL's movie timeline so they can be stepped and played |
| color | string | One colour for every frame; a per-frame spectrum would encode frame index as if measured |
| ensemble_name * | string | An ensemble previously loaded through the load_ensemble tool |
| level | number | Contour level. If omitted, 1.5 sigma against the first frame is used. |
| name | string | Prefix for the isosurfaces (defaults to "<ensemble>_surf") |
| units | string | Units of `level`: "sigma" (read against frame 1) or "absolute" |
ligand_viewShows a binding-site view focused on a ligand.| Parameter | Type | Description |
|---|---|---|
| ligand_resn * | string | 3-letter residue name of the ligand (e.g. "ATP", "HEM", "LIG") |
| obj_name * | string | PyMOL object name (e.g. "1abc") |
list_chainsLists the chain IDs present in an object (or in all objects).| Parameter | Type | Description |
|---|---|---|
| obj_name | string | Object to inspect. Defaults to every loaded object. |
list_ligandsLists the small-molecule (organic) ligand residue names in an object.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | Object to inspect for organic ligands. |
list_objectsLists all loaded PyMOL objects.load_ensembleLoad a cryo-EM heterogeneity job's volumes in trajectory order.| Parameter | Type | Description |
|---|---|---|
| directory * | string | Path to a heterogeneity job directory (cryoDRGN, 3DVA, RECOVAR, 3DFlex, DynaMight) |
| max_volumes | integer | Ceiling on frames loaded; any excess is reported, not hidden |
| method | string | Declare the generating method instead of detecting it: "cryodrgn", "3dva", "recovar", "3dflex", "dynamight", "cryospire" |
| name | string | Prefix for the loaded frame objects (defaults to the directory name) |
| provenance | string | How the volumes came to exist. Defaults to "generated" because heterogeneity output is decoder output or subspace interpolation. |
| trust_pickle | boolean | Permit reading a .pkl latent table. Off by default because unpickling runs arbitrary code from the file. |
load_mapLoad a volume into PyMOL, recording where it came from and reporting its geometry.| Parameter | Type | Description |
|---|---|---|
| name | string | PyMOL object name (defaults to a sanitised filename stem) |
| path * | string | Path to an MRC/CCP4 volume (.mrc/.map/.ccp4, optionally gzipped) |
| provenance | string | How this volume came to exist: "measured", "sharpened", "nn_enhanced", "generated", or "unknown". Defaults to "unknown" and is NEVER inferred. |
load_sessionRestores a PyMOL session from a .pse file.| Parameter | Type | Description |
|---|---|---|
| filename * | string | Path to the .pse file to open. |
| merge | boolean | Add to the current session rather than replacing it. |
load_structureLoads a structure from a local file path and applies the BFS multimer heuristic.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Path to the structure file (PDB, MMCIF, etc.) |
| multimer_cutoff | number | Distance (A) between chains to keep them in the same multimer. Default 8.0A is suitable for most functional assemblies. |
| obj_name * | string | Name for the object in PyMOL |
| replace | boolean | Clear the session first, so this is the only structure loaded. Pass False to add to what is already loaded — which is how you get two structures into one session for superposition_view. |
local_resolution_view| Parameter | Type | Description |
|---|---|---|
| breaks | array | Ascending resolution breakpoints in Ångström. Defaults to the resolution map's own observed range. |
| carve | number | Carve radius in Ångström; ignored without a selection |
| level | number | Contour level for the isosurface. If omitted, 1.5 sigma is used. |
| map_obj * | string | The density volume to draw, loaded through the load_map tool |
| name | string | Surface object name (defaults to "<map_obj>_localres") |
| palette | array | One PyMOL colour per breakpoint. Defaults to blue (best) through red (worst). |
| ramp_name | string | Ramp object name (defaults to "<res_obj>_ramp") |
| res_obj * | string | A local-resolution volume (values in Ångström), loaded through the load_map tool |
| selection | string | Restrict the surface to a carve around this PyMOL selection |
| units | string | Units of `level` only: "sigma" or "absolute". Ramp breakpoints are always in Ångström. |
| validate_only | boolean | Run the grid check and report, creating nothing |
lsLists files in the current directory| Parameter | Type | Description |
|---|---|---|
| path | string | Directory or glob to list. Omit for the current directory. |
map_infoReport an MRC/CCP4 map's geometry, above all its voxel size.| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to an MRC/CCP4 map file (.mrc/.map/.ccp4, optionally gzipped) |
morph_statesInterpolate between states, refusing when interpolation is ill-posed.| Parameter | Type | Description |
|---|---|---|
| name | string | Name for the morph object (defaults to "<obj_name>_morph") |
| obj_name * | string | Multi-state PyMOL object name to interpolate |
| steps | integer | Number of interpolated frames to generate (default 30) |
| validate_only | boolean | Run the topology check and report, without creating a morph |
moveMoves the camera along an axis| Parameter | Type | Description |
|---|---|---|
| axis * | string | Camera axis to translate along: ``x``, ``y`` or ``z``. |
| distance | string | Distance in Angstrom. |
mplayStarts playing the moviempngSaves a series of PNG images for movie frames| Parameter | Type | Description |
|---|---|---|
| prefix * | string | Filename prefix; PyMOL appends a zero-padded frame number. |
msetDefines a sequence of states for movie playback| Parameter | Type | Description |
|---|---|---|
| specification * | string | Frame-to-state mapping, e.g. "1 x30" to hold state 1 for 30 frames, or "1 -30" to sweep states 1 through 30. |
mstopStops the moviemutation_viewHighlights mutated residues on the protein structure.| Parameter | Type | Description |
|---|---|---|
| mutations * | string | Comma-separated mutation list (e.g. "A123G,V45L,T200S") |
| obj_name * | string | PyMOL object name (e.g. "1abc") |
occupancy_viewColour and scale a structure by per-atom crystallographic occupancy (q).| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1ejg") |
| preserve_bfactors | boolean | Stash the original B-factors before overwriting them so restore_bfactors can put them back (default True) |
orientOrients the view to align with principal axes of the selection| Parameter | Type | Description |
|---|---|---|
| selection | string | What to orient on. PyMOL aligns the longest axis of this selection with the screen's x-axis. |
pharmacophore_viewColors a ligand by pharmacophore feature type.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
| resn * | string | Ligand residue name (e.g. "ATP", "LIG", "ANP") |
plddt_viewColors an AlphaFold model by pLDDT confidence, using the official palette.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "AF_P69905") |
pngSaves a PNG image| Parameter | Type | Description |
|---|---|---|
| filename * | string | Output path for the PNG. |
| options | string | Extra arguments such as width, height, dpi, ray. |
pocket_viewVisualizes the binding pocket cavity around a ligand as a colored surface.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
| resn * | string | Ligand residue name (e.g. "ATP", "LIG", "ANP") |
pointillist_viewRenders the structure as an artistic, abstract pointillist/starfield cloud.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
poisson_boltzmann_viewColors the molecular surface by true Poisson-Boltzmann electrostatic potential.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
print_export| Parameter | Type | Description |
|---|---|---|
| bodies | string | "all" (default) keeps every separate piece of a group, e.g. both dimers of 4hhb's ribbon or all four hemes, and the result says it prints as N pieces. "largest" keeps only the biggest piece and reports what it dropped, with a WARNING when that is over 1% of the volume. Either way enclosed cavities are filled and stray fragments under 8 faces removed. |
| groups * | string | Semicolon-separated ``label=selection`` pairs, one per colour. Example: "protein=polymer.protein; nucleic=polymer.nucleic". In cartoon and displayed modes each group names whole objects, e.g. "barrel=(barrel or barrel_spine)". |
| method | string | "auto" (light cleanup if the export is already watertight apart from stray fragments, else poisson with voxel fallback), "poisson" (keeps detail, best for bulky surfaces; cannot merge sticks and spheres), or "voxel" (robust for thin cartoons, tubes and nucleic acids). |
| mm_per_angstrom | number | Print scale in millimetres per Ångström. 1.0 (default) prints 1 Å as 1 mm; 3.0 makes a 40 Å protein 120 mm across. Applied after repair to every group about the same origin, so the parts stay aligned; voxel_pitch stays in Å. Raise it when the result warns that a part is small enough for a slicer to mistake it for inches. |
| obj_name * | string | PyMOL object the groups are taken from (e.g. "1abc"); the STL files are named after it. |
| out_dir | string | Directory for the STL files (default: current directory). |
| poisson_depth | integer | Screened-Poisson octree depth; higher = more detail. |
| representation | string | What geometry to export. "surface" (default) isolates each group as its own temporary object and exports its molecular surface. "cartoon" exports the cartoon and surface triangles the group's objects *display*, keeping per-residue rep flags and per-object cartoon type (e.g. a `cartoon tube` spine from print_ribbon_view); it leaves out sticks, spheres, lines and dashes and names what it left out. "displayed" exports everything PyMOL draws for the group's objects: those triangles plus sticks, spheres, lines, ribbon and distance dashes (as solid rods), merged exactly. In cartoon and displayed modes groups are isolated by object visibility, so each group names whole object(s), one colour per object (e.g. "1abc or 1abc_spine"); name measurement and CGO objects in the group too. |
| undo_voxel_growth | boolean | Voxel method only: move every surface back in by 0.62 x voxel_pitch, the amount voxelising grows it (a 0.33 Å rod came out 0.38 Å at 0.1 Å pitch). Default true. Gaps narrower than about 2.5 x voxel_pitch fuse while voxelising and cannot be reopened, so where a clearance matters use voxel_pitch <= gap / 2.5. |
| voxel_pitch | number | Voxel size in Ångström for the voxel method; it stays in Å whatever mm_per_angstrom is. Use about one third of the thinnest feature you need to keep: 0.7 keeps a ~10 Å helix, print_ribbon_view ribbons want 0.2, thin rods 0.1. The result warns when a displayed cartoon feature is under 3 voxels across. Halving it costs about 5x the time. |
print_ribbon_view| Parameter | Type | Description |
|---|---|---|
| bridge_modified | boolean | Carry the spine through residues that are peptide-linked on both sides but have no CA atom, such as GFP's chromophore (CRO), which otherwise break it. Done on the spine only, with per-atom cartoon_trace_atoms and PyMOL's no_smooth flag on the Cα either side; no atom is renamed or renumbered. Default true. |
| obj_name * | string | PyMOL object name (e.g. "1abc"). |
| spine_in_strands | boolean | True (default) runs the spine through the strands as well, where it shows as bumps along thin ones. False takes it out of each strand's interior, keeping strand_overlap residues at each end so the loops still fuse to the strands. |
| spine_radius | number | Radius (Å) of the continuous backbone tube. Larger values give more internal reinforcement. Default 0.9. |
| strand_overlap | integer | With spine_in_strands=False, the residues of spine kept at each end of a strand, where it fuses with the loop. At least 2: with 1, 10 of GFP's 22 strand ends lost their junction. |
| strand_thickness | number | β-strand thickness setting (PyMOL's cartoon_rect_width). PyMOL draws the strand √2 times this thick: the default 2.0 is about 2.8 Å, 1.0 about 1.4 Å. |
| strand_width | number | β-strand width setting (PyMOL's cartoon_rect_length). PyMOL draws the strand √2 times this wide: the default 2.8 is about 4.0 Å. 2.0 (2.8 Å) opens the gaps in a β-barrel. |
putty_viewVisualizes protein flexibility using a putty (tube-width) representation.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
pwdPrints the current directoryqscore_viewColour a model by per-residue Q-score parsed from its wwPDB validation report.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "9c0k") |
| preserve_bfactors | boolean | Stash the original B-factors before overwriting them (default True) |
| validation_path * | string | Path to a wwPDB validation report (mmCIF or XML, optionally gzipped) for this entry |
rayPerforms ray-tracing| Parameter | Type | Description |
|---|---|---|
| height | string | Image height in pixels. |
| width | string | Image width in pixels. Omit to use the viewport size. |
rebuildRegenerates all displayed geometry| Parameter | Type | Description |
|---|---|---|
| selection | string | What to regenerate. Needed after altering coordinates or B-factors for the change to show. |
refreshRefreshes the displayremovePermanently removes the atoms matching the selection. This deletes atoms; it does not just| Parameter | Type | Description |
|---|---|---|
| selection * | string | Atoms to delete permanently. To hide them instead, use hide. |
renderRenders the current scene and returns the image, so you can see it.| Parameter | Type | Description |
|---|---|---|
| filename | string | Optional path to also keep the PNG at. Without it the render goes to a temporary file that is cleaned up afterwards — except when the image is too large to inline, where the file is kept so you still have the render. |
| height | integer | Image height in pixels. |
| ray_trace | boolean | Kept for compatibility and ignored — every render is ray-traced, because PyMOL's unshaded OpenGL capture does not work over this bridge. Use a smaller width/height to render faster. |
| width | integer | Image width in pixels. Larger costs render time and context. |
resetResets the view, optionally resetting an object's matrix| Parameter | Type | Description |
|---|---|---|
| obj | string | Object whose matrix to reset. Omit to reset only the camera. |
restore_bfactorsRestore the B-factors a Wiggles view overwrote.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object whose original B-factors should be put back |
rms_curMeasures RMSD between two selections *without* moving anything.| Parameter | Type | Description |
|---|---|---|
| mobile * | string | First selection. |
| target * | string | Second selection, same number of atoms. |
rockToggles a rocking animationsasaMeasures solvent-accessible surface area, in square Angstrom.| Parameter | Type | Description |
|---|---|---|
| selection | string | What to measure (e.g. "1brs and chain A"). |
| state | string | Object state to measure. "1" is the first/only state. |
saveSaves data to a file| Parameter | Type | Description |
|---|---|---|
| filename * | string | Output path. The extension picks the format: ``.pdb``, ``.cif``, ``.sdf``, ``.mol2``, ``.obj``, or ``.pse`` for a full session. |
| selection | string | What to write out. |
| state | string | Which state to save. "-1" is the current state, "0" writes all states. |
save_sessionSaves the entire PyMOL session to a .pse file.| Parameter | Type | Description |
|---|---|---|
| filename * | string | Path to write. A ``.pse`` extension is added if missing. |
sceneManages scenes for later recall| Parameter | Type | Description |
|---|---|---|
| action | string | ``store`` to save the current view, ``recall`` to restore it, ``clear``, ``update``, ``rename``, ``delete``, ``next``, ``previous``. |
| key * | string | Scene name, e.g. "F1", or "auto" to use the next free slot. |
scene_orderSets the order of scenes| Parameter | Type | Description |
|---|---|---|
| scene_list * | string | Space-separated scene names in the order wanted, e.g. "F2 F1 F3". |
sculpt_activateActivates sculpting mode for an object| Parameter | Type | Description |
|---|---|---|
| obj * | string | Object to enable real-space sculpting on. |
sculpt_deactivateDeactivates sculpting mode for an object| Parameter | Type | Description |
|---|---|---|
| obj * | string | Object to stop sculpting. |
sculpt_iteratePerforms sculpting iterations| Parameter | Type | Description |
|---|---|---|
| iterations | string | Number of relaxation cycles to run, e.g. "10". |
| obj * | string | Object to relax. |
| state | string | State to relax. "-1" is the current state. |
selectCreates (or replaces) a named selection for later reuse.| Parameter | Type | Description |
|---|---|---|
| name * | string | Identifier you'll refer to later (e.g. ``active_site``). |
| selection * | string | PyMOL selection expression to assign to that name. |
setSets a PyMOL setting to a specified value.| Parameter | Type | Description |
|---|---|---|
| selection | string | Limit the setting to this object or selection. Omit to set it globally. |
| setting * | string | PyMOL setting name, e.g. "cartoon_transparency", "ray_shadow", "sphere_scale". Hundreds exist; see the PyMOL settings reference. |
| value * | string | The value as a string, e.g. "0.5", "1", "black". |
set_symmetrySets symmetry parameters for an object| Parameter | Type | Description |
|---|---|---|
| a * | string | Unit cell edge a, in Angstrom. |
| alpha * | string | Unit cell angle alpha, in degrees. |
| b * | string | Unit cell edge b, in Angstrom. |
| beta * | string | Unit cell angle beta, in degrees. |
| c * | string | Unit cell edge c, in Angstrom. |
| gamma * | string | Unit cell angle gamma, in degrees. |
| selection * | string | Object to assign the unit cell to. |
showShows a graphical representation for a given selection.| Parameter | Type | Description |
|---|---|---|
| representation * | string | One of ``cartoon``, ``sticks``, ``spheres``, ``surface``, ``lines``, ``ribbon``, ``dots``, ``mesh``, ``nb_spheres``, ``labels``. |
| selection | string | PyMOL selection string. See module-level note for syntax. |
spectrumColors selection in a spectrum| Parameter | Type | Description |
|---|---|---|
| expression * | string | Atom property to colour by: ``b`` (B-factor or pLDDT), ``q`` (occupancy), ``count``, ``resi``, ``pc`` (partial charge). |
| palette | string | Colour ramp, e.g. ``rainbow``, ``blue_white_red``, ``cyan_white_magenta``, ``green_yellow_red``. |
| selection | string | PyMOL selection string, e.g. "1abc and chain A". See the module note for syntax. |
spheroidDisplays atoms as smooth spheres| Parameter | Type | Description |
|---|---|---|
| obj | string | Object to render as smoothed spheres. This is an object name, not a selection expression — cmd.spheroid resolves it as an object and reports 'Object not found' for anything else. The default is the empty string, which cmd.spheroid takes to mean every object; passing "all" is an error, because no object is named that. |
structure_infoSummarises what a loaded structure actually is, in one call.| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object to describe (e.g. "1hsg"). |
| pdb_id | string | PDB code to look up, if the object was renamed and its name no longer matches the entry. |
superSuperimposes one selection onto another| Parameter | Type | Description |
|---|---|---|
| mobile * | string | Selection to move. |
| options | string | Extra PyMOL arguments. |
| target | string | Selection to superimpose onto; this one stays put. |
superposition_viewSuperposes two structures and colors the mobile one by per-residue shift.| Parameter | Type | Description |
|---|---|---|
| max_deviation | number | Angstrom value mapped to full red. Defaults to the largest observed shift, which maximises contrast; set it explicitly to compare two different pairs on one scale. |
| method | string | "super" (default) is sequence-independent and handles low identity or different folds; "align" uses a sequence alignment first and is better for near-identical sequences. |
| mobile * | string | Object to move and color (e.g. "1ake"). |
| target * | string | Object to superpose onto and leave in place (e.g. "4ake"). |
symexpGenerates symmetry-related copies| Parameter | Type | Description |
|---|---|---|
| cutoff | string | Distance in Angstrom out to which to generate mates. |
| obj_name * | string | Object holding the crystal symmetry. Separate from the selection below: cmd.symexp needs both. |
| prefix * | string | Prefix for the generated symmetry-mate objects. |
| segi | string | Optional segment identifier for the new objects. |
| selection * | string | Selection whose crystallographic neighbours to build. |
systemExecutes a system command| Parameter | Type | Description |
|---|---|---|
| command * | string | Shell command to run on the machine PyMOL is running on. |
textbook_viewConfigures PyMOL for a crisp, cel-shaded illustrative look ("Textbook Illustration").| Parameter | Type | Description |
|---|---|---|
| obj_name * | string | PyMOL object name (e.g. "1abc") |
turnRotates the camera around an axis| Parameter | Type | Description |
|---|---|---|
| angle | string | Rotation in degrees. Negative reverses direction. |
| axis * | string | Camera axis to rotate about: ``x``, ``y`` or ``z``. |
turntableRenders a full 360° rotation as a numbered PNG sequence.| Parameter | Type | Description |
|---|---|---|
| frames | integer | Number of frames over the full 360°. 36 gives 10° steps. |
| height | integer | Frame height in pixels. |
| obj_name | string | Object to centre the rotation on (default: the whole scene). |
| out_dir | string | Directory to write the PNG sequence into. |
| prefix | string | Filename prefix; frames are ``<prefix>_0000.png`` and up. |
| ray_trace | boolean | Kept for compatibility and ignored — every frame is ray-traced, because PyMOL's unshaded OpenGL capture does not work over this bridge. |
| width | integer | Frame width in pixels. |
unbondRemoves a bond between two atoms| Parameter | Type | Description |
|---|---|---|
| atom1 * | string | First atom of the bond to remove. |
| atom2 * | string | Second atom of the bond to remove. |
util_cbabColors by atom, slate carbons (Color By Atom, slateBLue)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbacColors by atom, cyan carbons (Color By Atom, Cyan)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbagColors by atom, green carbons (Color By Atom, Green)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbakColors by atom, pink carbons (Color By Atom, pinK)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbamColors by atom, magenta carbons (Color By Atom, Magenta)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbaoColors by atom, orange carbons (Color By Atom, Orange)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbapColors by atom, purple carbons (Color By Atom, Purple)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbasColors by atom, salmon carbons (Color By Atom, Salmon)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbawColors by atom, white carbons (Color By Atom, White)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbayColors by atom, yellow carbons (Color By Atom, Yellow)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_cbcColors by chain (Color By Chain)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_chainbowColors chains in rainbow gradient (CHAINs in rainBOW)| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_color_by_elementColors atoms by their element| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_color_secondaryColors secondary structure elements| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_rainbowColors residues in rainbow from N to C terminus| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
util_ssColors by secondary structure| Parameter | Type | Description |
|---|---|---|
| selection | string | What to recolour. Defaults to everything. |
viewportSets the viewport size| Parameter | Type | Description |
|---|---|---|
| height * | string | Viewport height in pixels. |
| width * | string | Viewport width in pixels. |
zoomZooms the view on a selection| Parameter | Type | Description |
|---|---|---|
| buffer | string | Extra padding around the selection, in Angstrom. |
| selection | string | What to fill the view with. |
Security checks
6 checks have not been run yet.