Selections and commands

The search box finds residues and atoms, and it is also a command line. This page covers the selection language and every command.

The search box is a command line

Press / to jump to the search box in the top bar.

Erlotinib in the EGFR kinase pocket (1M17) styled from the command line, with side-chain sticks within 4.5 Å, the hinge hydrogen bond from Met769 measured at 2.70 Å, and a live selection preview in the search box
Erlotinib in the EGFR kinase pocket (1M17), styled from the command line: side-chain sticks within 4.5 Å, the hinge hydrogen bond from Met769 measured at 2.70 Å, and a live selection preview in the search box.

Examples

TypeResult
chain A and resi 40-80Selects residues 40–80 of chain A.
within 5 of resn STIEverything within 5 Å of imatinib.
show sticks byres (within 4.5 of ligand) and proteinSide-chain sticks around every ligand, on the cartoon.
color magenta /A:315Colors residue 315 of chain A.
hide waterHides the solvent.
hide chain BHides a chain.
show everythingShows everything again.
distance /A:769@N to :AQ4@N2The hinge hydrogen bond to erlotinib in 1M17 (2.70 Å).
superpose 1AKE onto 4AKE fit /A:1-29+60-121+160-214Fits on the adenylate kinase CORE domain.
select deviation > 5Residues that moved more than 5 Å after superposing.
focus resn HEM and chain AFocuses a ligand.
label seleLabels the selection.
zoom #2Frames a structure.
tmalign 1A5R onto 1UBQSuperposes SUMO-1 on ubiquitin by structure alone.
map load, map level 1.2, map fitLoads the density map, contours it at 1.2σ, and fits the model.

Selection language

Selections use PyMOL-style keywords with ChimeraX-style atom specs. Type one on its own in the search box, or use it in any command that takes a selection.

Identifiers

KeywordExampleMatches
chainchain A+BChains A and B.
resiresi 40-80+100AResidue numbers, in author numbering with insertion codes.
resnresn STIResidue names.
namename CAAtom names.
elemelem FEElements.
uniprotuniprot 175Residues in UniProt numbering.
ssss helixSecondary structure: helix, sheet, turn or coil (DSSP letters such as h and e work too).
entityentity 1Entity IDs of the structure file.
modelmodel 1Models of an ensemble.
id, serialid 1234Atom serial numbers.
#, structure#2, structure 1AKEA structure in the scene.

Identifiers accept * wildcards.

Atom specs

Atom specs name chains, residues and atoms in one compact form:

Classes

protein, nucleic, polymer, ligand, ion, metal, water, hetatm, hydrogen, backbone, sidechain, helix, sheet, turn and coil, and all and none.

Logic and neighborhoods

Distances reach across structures, so within 5 of (#1 and ligand) finds residues of a superposed structure near another structure's ligand.

Values

Select by a number with a comparison, as in these examples:

ExampleValue
b > 60B-factor.
q < 1Occupancy.
plddt < 70AlphaFold confidence (pLDDT).
deviation > 2Cα distance to the aligned residue after superposition, in Å.
lddt < 0.7Local agreement (lDDT) with the compared structure.
rmsf > 2RMSF across overlaid models.
rsa > 0.4Relative solvent accessibility, after Compute SASA.
ppse < 6Part-sphere exposure (pPSE).
am > 0.564AlphaMissense pathogenicity.
msa < 30MSA depth.
rsrz > 2, rscc < 0.8, qscore < 0.4Fit to density, from the wwPDB validation report.
conservation > 0.6, grade >= 8Conservation score and grade.
mapfit < 1Fit to a loaded density map.

Named sets

SetContains
seleThe current selection.
focusThe focused residue or ligand.
sitesProteomics sites.
coveredResidues covered by peptides.
alignedResidues paired in a comparison.
outliersOutliers from the validation report.
idrDisordered regions, after the pPSE analysis.

Command reference

Every command, grouped by what it does. In the syntax, <…> is a value you fill in, […] is optional, and | separates alternatives. Where a command has other names, they are listed after its description; they work the same way.

Selecting and framing

CommandSyntaxWhat it does
selectselect <selection>Selects the residues that match a selection. Also sele, sel.
zoomzoom [<selection>]Frames the selection, or everything. Also view, frame.
orientorient [<selection>]Frames along the principal axes of the selection.
focusfocus <selection>Focuses residues or a ligand: side chains within 5 Å and interactions.
labellabel [<selection>]Labels residues (the selection by default).
unlabelunlabel [<selection>]Removes labels.

Styling

CommandSyntaxWhat it does
showshow <sticks|ball-stick|spheres|cartoon|surface|water|hydrogens> [<selection>]Shows a representation, for a selection or everywhere. show everything shows everything again.
hidehide [<representation>|everything] [<selection>]Hides residues or a representation, for example hide water or hide chain B.
colorcolor <color|scheme|default> [<selection>]Colors a selection with a name (red, slate, …) or a hex value (#ff8800), applies a scheme (chain, plddt, deviation, …), or returns to the default colors. Schemes apply to whole structures, so use them without a selection. Also colour.
presetpreset <cartoon|ball-stick|sticks|spacefill|trace|surface>Applies a representation preset. Also style, rep.
lightinglighting <standard|soft|illustrative|glossy|neon|flat>Applies a lighting preset. See Lighting and effects. Also light.
bgbg <dark|black|gray|white>Sets the background. Also background.

Opening and managing structures

CommandSyntaxWhat it does
fetchfetch <PDB ID|UniProt accession>Fetches a structure, replacing the scene. Also open, load.
addadd <PDB ID|UniProt accession>Fetches a structure and adds it to the scene.
searchsearch <gene|protein|UniProt|keywords|sequence>Finds structures and models in RCSB PDB, UniProt, PDBe and 3D-Beacons. See Finding structures. Also lookup, discover.
exampleexample [add] [<id>]Opens a bundled example with its opening view. With add, adds it next to the open structures, without the view. With no ID, lists them. Also examples, sample, demo.
listlistLists the structures in the scene. Also structures, ls.
infoinfoDescribes the active structure: source, method and resolution or confidence, chains, ligands and scores. Also describe, about.
activateactivate <structure>Makes a structure the active one. Also use.
removeremove <structure>Removes a structure from the scene. Also delete, close.
refreshrefreshDownloads the active structure again, bypassing the cache. Also reload.
assemblyassembly [<id>|au]Builds a biological assembly of the active structure (au: the asymmetric unit), or lists them. Also assemblies, biounit.

Comparing structures and predictions

CommandSyntaxWhat it does
superposesuperpose <moving|all> [onto <reference>] [fit <selection>]Superposes structures and reports RMSD, TM-score and lDDT. fit sets the residues to fit on. See Comparing structures. Also super, align, matchmaker, mm.
tmaligntmalign <moving|all> [onto <reference>]Superposes by structure alone (TM-align; MM-align for complexes), for remote homologs and different complexes. Also usalign, structalign, tm-align.
alphafoldalphafoldCompares the active structure with its AlphaFold DB model. Also af.
overlayoverlay [on|off]Overlays all models of an ensemble.
rankingranking [<rank>]Lists the models of an opened prediction, or shows the one at a rank. See Predictions and AlphaFold. Also models, predictions.
triagetriage [by <metric>] [top <n>] [jobs|models] [pair <chain> <chain>|best]
triage show <n>
triage gallery [<n>] [width <px>]
triage export
Ranks every opened prediction job by ipSAE, pDockQ2, pDockQ, LIS, ipTM, pTM, the tool's score, pLDDT, cross-links, pose checks, or Boltz-2's affinity and binder probability; shows a row, renders a gallery of the best, or exports the table. See Batch triage. Also batch, campaign.
domainsdomainsFinds rigid domains in the PAE matrix and colors by them. Also paedomains.
msamsaColors by MSA depth (AlphaFold DB models, prediction folders, dropped .a3m files).

Validation, maps and docking

CommandSyntaxWhat it does
validatevalidate [clashes|fit|refresh|off]Loads the wwPDB validation report and colors outliers, shows clashes or density fit. See Validation and density maps. Also validation, report.
mapmap [load|refresh|fit|off]
map peaks [<σ>]
map level <σ> [2fofc|fofc|em]
map style mesh|surface
map region focus|view|all
map radius <Å>
map zone <Å>|off
Loads the X-ray or cryo-EM map of a PDB entry, contours it, fits the model to it, or lists the peaks of the difference map (see Difference-map peaks). Also density, volume.
posepose [<n>|next|previous|fingerprints|off]Shows a docking pose (opened from SDF, MOL2 or PDBQT), computes interaction fingerprints, or removes the poses. See Ligands and docking. Also poses, docking.

Analysis and proteomics

CommandSyntaxWhat it does
compoundcompound [<selection>]Shows the ligand card: names, formula, weight, SMILES, InChIKey and database links. See The ligand card. Also chem, component, ccd.
posecheckposecheck [<selection>]Checks a ligand pose as PoseBusters does: bond lengths and angles, clashes, flat rings, stereocenters and contacts with the protein. See Pose checks. Also posebusters, checks, pb.
diagramdiagram [<selection>] [names]Draws a 2D diagram of a ligand and its interactions, for figures; names adds atom names. See 2D interaction diagrams. Also ligplot, poseview.
interactionsinteractions <selection>Focuses residues or a ligand and lists their interactions with PLIP's criteria. Also plip.
interfaceinterface <chain> <chain>Lists the contacts between two chains and frames their interface. Also contacts.
conservationconservation [jsd|entropy|off]Colors by conservation from the prediction's MSA, AlphaFold DB's, or a dropped alignment (Jensen–Shannon divergence, ConSurf-style grades). Also consurf, conserved.
missensemissense [<UniProt accession>]Colors by AlphaMissense pathogenicity (human proteins). Also alphamissense, am.
exposureexposureComputes part-sphere exposure (pPSE) and disorder as in StructureMap, and colors by pPSE. Also ppse, structuremap.
evidenceevidenceLoads public peptides and PTM sites (EBI Proteins API) and colors their coverage. See Proteomics. Also public, peptideatlas.

View, measure and save

CommandSyntaxWhat it does
distancedistance <atom> to <atom>Measures the distance between two atoms. Also dist, measure.
turnturn <x|y|z> [degrees]Rotates the view about a screen axis, by 90° unless you give an angle. Also rotate.
spinspin [on|off]Spins the view; on its own, turns spinning on or off.
resetresetResets the view.
pngpng [1-4] [transparent]Saves an image at 1× to 4× (2× unless you give a scale), optionally with a transparent background. Also image, snapshot, export.
savesaveSaves the session as a file. See Sessions, figures and methods. Also session.
linklinkCopies a link that reopens this view. Also share.
mvsmvsExports the view as MolViewSpec for Mol*. Also molviewspec.
helphelp [command]Lists commands; for scripts and agents, as text. Also ?, commands.

Styling from the Selection card

You do not have to type to style residues. Sticks, Color, Hide and Reset on the Selection card apply to the selected residues, and All in the Chains card shows hidden residues again. See Selection, focus and interactions.

Running commands from scripts

Every command also runs from code. In the browser console, proteoscope.run() executes a command and returns { ok, message, data }:

js
await proteoscope.run('show sticks byres (within 4.5 of resn STI) and protein');

From Python or Jupyter, start Proteoscope with --remote-control and send the same commands over HTTP. See Scripting and command line. AI agents run them through Proteoscope's MCP server; see AI agents (MCP).