PyMOLVisualizeMacromolecules.py - Visualize macromolecules
PyMOLVisualizeMacromolecules.py [--align <yes or no>] [--alignMethod <align, cealign, super>] [--alignMode <FirstChain or Complex>] [--alignRefFile <filename>] [--allowEmptyObjects <yes or no>] [--chainIDs <First, All or ID1,ID2...>] [--ligandIDs <Largest, All or ID1,ID2...>] [--labelFontID <number>] [--PMLOut <yes or no>] [--pocketContactsInorganicColor <text>] [--pocketContactsLigandColor <text>] [--pocketContactsLigandHydrophobicColor <text>] [--pocketContactsSolventColor <text>] [--pocketContactsCutoff <number>] [--pocketDistanceCutoff <number>] [--pocketLabelColor <text>] [--pocketResidueTypes <yes or no>] [--pocketSurface <yes or no>] [--pocketSurfaceElectrostatics <yes or no>] [--residueTypes <Type,Color,ResNames,...>] [--residueTypesChain <yes or no>] [--selectionsChain <ObjectName,SelectionSpec,...>] [--selectionsChainSurface <yes or no>] [--selectionsChainStyle <DisplayStyle>] [--surfaceChain <yes or no>] [--surfaceChainElectrostatics <yes or no>] [--surfaceChainComplex <yes or no>] [--surfaceComplex <yes or no>] [--surfaceColor <ColorName>] [--surfaceColorPalette <RedToWhite or WhiteToGreen>] [--surfaceAtomTypesColors <ColorType,ColorSpec,...>] [--surfaceTransparency <number>] [--overwrite] [-w <dir>] -i <infile1,infile2,infile3...> -o <outfile>
PyMOLVisualizeMacromolecules.py -h | --help | -e | --examples
Generate PyMOL visualization files for viewing surfaces, chains, ligands, ligand binding pockets, and interactions between ligands and binding pockets in macromolecules including proteins and nucleic acids.
The supported input file format are: PDB (.pdb), CIF (.cif)
The supported output file formats are: PyMOL script file (.pml), PyMOL session file (.pse)
A variety of PyMOL groups and objects may be created for visualization of macromolecules. These groups and objects correspond to complexes, surfaces, chains, ligands, inorganics, ligand binding pockets, pocket, polar interactions, and pocket hydrophobic surfaces. A complete hierarchy of all possible PyMOL groups and objects is shown below:
The hydrophobic and electrostatic surfaces are not created for complete complex and chain complex in input file(s) by default. A word to the wise: The creation of surface objects may slow down loading of PML file and generation of PSE file, based on the size of input complexes. The generation of PSE file may also fail.
Align input files to a reference file before visualization.
Alignment methodology to use for aligning input files to a reference file.
Portion of input and reference files to use for spatial alignment of input files against reference file. Possible values: FirstChain or Complex.
The FirstChain mode allows alignment of the first chain in each input file to the first chain in the reference file along with moving the rest of the complex to coordinate space of the reference file. The complete complex in each input file is aligned to the complete complex in reference file for the Complex mode.
Reference input file name. The default is to use the first input file name specified using '-i, --infiles' option.
Allow creation of empty PyMOL objects corresponding to solvent and inorganic atom selections across chains and ligands in input file(s). By default, the empty objects are marked for deletion.
List of chain IDs to use for visualizing macromolecules. Possible values: First, All, or a comma delimited list of chain IDs. The default is to use the chain ID for the first chain in each input file.
Print examples.
Print this help message.
Input file names.
List of ligand IDs present in chains for visualizing macromolecules to highlight ligand interactions. Possible values: Largest, All, or a comma delimited list of ligand IDs. The default is to use the largest ligand present in all or specified chains in each input file.
Ligands are identified using organic selection operator available in PyMOL. It'll also identify buffer molecules as ligands. The largest ligand contains the highest number of heavy atoms.
Font ID for drawing labels. Default: 7 (Sans Bold). Valid values: 5 to 16. The specified value must be a valid PyMOL font ID. No validation is performed. The complete lists of valid font IDs is available at: pymolwiki.org/index.php/Label_font_id. Examples: 5 - Sans; 7 - Sans Bold; 9 - Serif; 10 - Serif Bold.
Output file name.
Save PML file during generation of PSE file.
Color for drawing polar contacts between inorganic and pocket residues. The specified value must be valid color. No validation is performed.
Color for drawing polar contacts between ligand and pocket residues. The specified value must be valid color. No validation is performed.
Color for drawing hydrophobic contacts between ligand and pocket residues. The specified value must be valid color. No validation is performed. The hydrophobic contacts are shown between pairs of carbon atoms not connected to hydrogen bond donor or acceptors atoms as identified by PyMOL.
Color for drawing polar contacts between solvent and pocket residues.. The specified value must be valid color. No validation is performed.
Distance in Angstroms for identifying polar and hyrdophobic contacts between atoms in pocket residues and ligands.
Distance in Angstroms for identifying pocket residues around ligands.
Color for drawing residue or atom level labels for a pocket. The specified value must be valid color. No validation is performed.
Pocket residue types. The residue groups are generated using residue types, colors, and names specified by '--residueTypes' option. It is only valid for amino acids. By default, the residue type groups are automatically created for pockets containing amino acids and skipped for chains only containing nucleic acids.
Surfaces around pocket residues colored by hydrophobicity alone and both hydrophobicity and charge. The hydrophobicity surface is colored at residue level using Eisenberg hydrophobicity scale for residues and color gradient specified by '--surfaceColorPalette' option. The hydrophobicity and charge surface is colored [ REF 140 ] at atom level using colors specified for groups of atoms by '--surfaceAtomTypesColors' option. This scheme allows simultaneous mapping of hyrophobicity and charge values on the surfaces.
The cavity surfaces around ligands are also generated. These surfaces are colored by hydrophobicity along and both hydrophobicity and charge.
This option is only valid for amino acids. By default, both surfaces are automatically created for pockets containing amino acids and skipped for pockets containing only nucleic acids.
In addition, generic pockect and cavity surfaces colored by '--surfaceColor' are always created for pocket residues containing amino acids and nucleic acids.
Vacuum electrostatics contact potential surface around pocket residues. A word to the wise from PyMOL documentation: The computed protein contact potentials are only qualitatively useful, due to short cutoffs, truncation, and lack of solvent "screening".
The cavity surface around ligands is also generated. This surface is colored by vacuum electrostatics contact potential.
This option is only valid for amino acids. By default, the electrostatics surface is automatically created for chains containing amino acids and skipped for chains containing only nucleic acids.
Residue types, colors, and names to generate for residue groups during '--pocketResidueTypes' and '--residueTypesChain' option. It is only valid for amino acids.
It is a triplet of comma delimited list of amino acid residues type, residues color, and a space delimited list three letter residue names.
The default values for residue type, color, and name triplets are shown below:
The color name must be a valid PyMOL name. No validation is performed. An amino acid name may appear across multiple residue types. All other residues are grouped under 'Other'.
Chain residue types. The residue groups are generated using residue types, colors, and names specified by '--residueTypes' option. It is only valid for amino acids. By default, the residue type groups are automatically created for chains containing amino acids and skipped for chains only containing nucleic acids.
Custom selections for chains. It is a pairwise list of comma delimited values corresponding to PyMOL object names and selection specifications. The selection specification must be a valid PyMOL specification. No validation is performed.
The PyMOL objects are created for each chain corresponding to the specified selections. The display style for PyMOL objects is set using value of '--selectionsChainStyle' option.
The specified selection specification is automatically appended to appropriate chain specification before creating PyMOL objects.
For example, the following specification for '--selectionsChain' option will generate PyMOL objects for chains containing Cysteines and Serines:
Surfaces around individual chain selections colored by hydrophobicity alone and both hydrophobicity and charge. This option is similar to '--surafceChain' options for creating surfaces for chain. Additional details are available in the documentation section for '--surfaceChain' options.
Display style for PyMOL objects created for '--selectionsChain' option. It must be a valid PyMOL display style. No validation is performed.
Surfaces around individual chain colored by hydrophobicity alone and both hydrophobicity and charge. The hydrophobicity surface is colored at residue level using Eisenberg hydrophobicity scale for residues and color gradient specified by '--surfaceColorPalette' option. The hydrophobicity and charge surface is colored [ REF 140 ] at atom level using colors specified for groups of atoms by '--surfaceAtomTypesColors' option. This scheme allows simultaneous mapping of hyrophobicity and charge values on the surfaces.
This option is only valid for amino acids. By default, both surfaces are automatically created for chains containing amino acids and skipped for chains containing only nucleic acids.
In addition, generic surfaces colored by '--surfaceColor' are always created for chain residues containing amino acids and nucleic acids.
Vacuum electrostatics contact potential surface and volume around individual chain. A word to the wise from PyMOL documentation: The computed protein contact potentials are only qualitatively useful, due to short cutoffs, truncation, and lack of solvent "screening".
This option is only valid for amino acids. By default, the electrostatics surface and volume are automatically created for chains containing amino acids and skipped for chains containing only nucleic acids.
Hydrophobic surface around chain complex. The surface is colored by hydrophobicity. It is only valid for amino acids.
Hydrophobic surface around complete complex. The surface is colored by hydrophobicity. It is only valid for amino acids.
Atom colors for generating surfaces colored by hyrophobicity and charge around chains and pockets in proteins. It's a pairwise comma delimited list of atom color type and color specification for goups of atoms.
The default values for color types [ REF 140 ] along wth color specifications are shown below:
The color names must be valid PyMOL names.
The color values may also be specified as space delimited RGB triplets:
Color name for surfaces around chains and pockets. This color is not used for surfaces colored by hydrophobicity and charge. The color name must be a valid PyMOL name.
Color palette for hydrophobic surfaces around chains and pockets in proteins. Possible values: RedToWhite or WhiteToGreen from most hydrophobic amino acid to least hydrophobic. The colors values for amino acids are taken from color_h script available as part of the Script Library at PyMOL Wiki.
Surface transparency for molecular surfaces.
Overwrite existing files.
Location of working directory which defaults to the current directory.
To visualize the first chain, the largest ligand in the first chain, and ligand binding pockets to highlight ligand interaction with pocket resiudes, solvents and inorganics, in a PDB file, and generate a PML file, type:
To visualize the first chain along with all cysteines and serines, the largest ligand in the first chain, and ligand binding pockets to highlight ligand interaction with pocket resiudes, solvents and inorganics, in a PDB file, and generate a PML file, type:
To visualize all chains, all ligands in all chains, and all ligand binding pockets to highlight ligand interaction with pocket resiudes, solvents and inorganics, in a PDB file, and generate a PML file, type:
To visualize all chains, ligands, and ligand binding pockets along with displaying all hydrophibic surfaces and chain electrostatic surface, in a PDB file, and generate a PML file, type:
To visualize chain E, ligand ADP in chain E, and ligand binding pockets to highlight ligand interaction with pocket resiudes, solvents and inorganics, in a PDB file, and generate a PML file, type:
To visualize chain E, ligand ADP in chain E, and ligand binding pockets to highlight ligand interaction with pocket resiudes, solvents and inorganics, in a PDB file, and generate a PSE file, type:
To visualize the first chain, the largest ligand in the first chain, and ligand binding pockets to highlight ligand interaction with pocket resiudes, solvents and inorganics, in PDB files, along with aligning first chain in each input file to the first chain in first input file, and generate a PML file, type:
To visualize all chains, all ligands in all chains, and all ligand binding pockets to highlight ligand interaction with pocket resiudes, solvents and inorganics, in PDB files, along with aligning first chain in each input file to the first chain in first input file, and generate a PML file, type:
To visualize all chains, all ligands in all chains, and all ligand binding pockets to highlight ligand interaction with pocket resiudes, solvents and inorganics, in PDB files, along with aligning first chain in each input file to the first chain in a specified PDB file using a specified alignment method, and generate a PML file, type:
DownloadPDBFiles.pl, PyMOLVisualizeCavities.py, PyMOLVisualizeCryoEMDensity.py, PyMOLVisualizeElectronDensity.py, PyMOLVisualizeInterfaces.py, PyMOLVisualizeSurfaceAndBuriedResidues.py
Copyright (C) 2020 Manish Sud. All rights reserved.
The functionality available in this script is implemented using PyMOL, a molecular visualization system on an open source foundation originally developed by Warren DeLano.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.