LinuxCommandLibrary

pymol

TLDR

Launch PyMOL GUI

$ pymol
copy
Open structure file
$ pymol [structure.pdb]
copy
Run script
$ pymol [script.pml]
copy
Command line mode
$ pymol -c [script.pml]
copy
Render image
$ pymol -c -d "load [file.pdb]; ray; png [output.png]"
copy

SYNOPSIS

pymol [options] [files...]

DESCRIPTION

PyMOL is a molecular visualization system for 3D structures of proteins, nucleic acids, and small molecules. It provides publication-quality graphics and extensive scripting capabilities.

PARAMETERS

-c

Command line only (no GUI).
-d command
Execute command.
-p
Read commands from stdin.
-q
Quiet mode.
-r script
Run Python script.
-e
Exit after script.

EXAMPLES

$ # Launch and load structure
pymol protein.pdb

# Batch rendering
pymol -c -d "load 1abc.pdb; hide all; show cartoon; ray; png output.png; quit"

# Run script
pymol script.pml

# Fetch from PDB
pymol -d "fetch 1crn; show cartoon"
copy

COMMANDS (PML)

$ load file.pdb           # Load structure
fetch 1abc              # Download from PDB
show cartoon            # Display style
color red, chain A      # Coloring
ray                     # Render
png output.png          # Save image
copy

CAVEATS

Open-source version has some limitations. Educational and commercial licenses available. Memory-intensive for large structures.

HISTORY

PyMOL was created by Warren DeLano starting in 1998, now maintained by Schrödinger, Inc. with open-source development.

SEE ALSO

chimera(1), vmd(1), rasmol(1)

Copied to clipboard