![]() |
PyMOLVisualizeFpockets.py - Visualize fpockets for macromolecules.
PyMOLVisualizeFpockets.py [--align <yes or no>] [--alignMethod <align, cealign, super>] [--alignMode <FirstChain or Complex>] [--alignRefFile <filename>] [--chainIDs <First, All or ID1,ID2...>] [--fpocketMode <All, TopN, or Specify>] [--fpocketIDs <Value or Value1,Value2...>] [--fpocketPropertiesAppend <yes or no>] [--labelFontID <number>] [--outfilesDir <outfilesDir>] [--pocketColorByPocketNum <yes or no>] [--pocketLabel <yes or no>] [--pocketLabelType <OneLetter or ThreeLetter>] [--pocketSurface <yes or no>] [--sphereScale <number>] [--sphereTransparency <number>] [--surfaceChain <yes or no>] [--surfaceAtomTypesColors <ColorType,ColorSpec,...>] [--surfaceColor <ColorName>] [--surfaceColorPalette <RedToWhite or WhiteToGreen>] [--surfaceTransparency <number>] [--overwrite] [-w <dir>] -i <infile1,infile2,infile3...> -o <outfile>
PyMOLVisualizeFpockets.py -h | --help | -e | --examples
Generate a PyMOL visualization file for visualizing pockets in macromolecules detected by an open source package named Fpocket [ Ref 166 ].
The results of Fpocket calculations must be available in the current directory for all input files. A complete set of expected results is shown below:
The supported input file format is: PDB (.pdb)
The supported output file formats is: PyMOL script file (.pml)
The following directory and files are created for the visualization of pockets detected by Fpocket:
You may visualize pockets in PyMOL by loading <OutfileRoot>.pml from <OutfileRoot>_out_PyMOL or <OutfilesDir> directory.
A variety of PyMOL groups and objects may be created for visualization of fpockets in macromolecules. These groups and objects correspond to complexes, chains, fpockets, and surfaces. A complete hierarchy of all possible PyMOL groups and objects is shown below:
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.
List of chain IDs to use for visualizing fpockets in 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.
Fpockets specification mode for visualizing fpockets across chains in macromolecules. Possible values: All, TopN, or specify. By default, all available fpockets are visualized across specified chains.
The fpocket IDs must be specified using '--fpocketIDs' option for 'TopN' and 'Specifiy' value of '--fpocketMode '.
List of Fpocket IDs for visualizing fpockets across chains. This value is dependent on the value of '--fpocketMode'. The possible values are either a number or a comma delimited list of number for 'TopN' and 'Specify' value '--fpocketMode' option. For example:
This option is ignored during 'All' value of '--fpocketMode' option.
Append fpocket properties to names of PyMOL fpocket groups and objects. The following properties are appended to the names of PyMOL groups using their abbreviations and values: PocketScore - S; DrugScore - D; PocketVolume - V; HydrophobicityScore - H; PolarityScore - P. For example:
Print this help message.
Input PDB file names. The current directory must contain the results from Fpocket calculations for all the input PDB files.
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.
PML output file name for visualizing fpockets. The PML outfile is created in a new output directory named <OutfileRoot>_out_PyMOL. In addition, the output directory contains all appropriate PDB files generated by Fpocket for visualization of fpockets in PyMOL.
Output files directory name. Default: <OutfileRoot>_out_PyMOL.
Color fpocket residues and residue labels by pocket number. Otherwise, the pocket residues are colored by element names using default PyMOL color scheme. No color is set for residue labels.
Display residue labels on fpocket residues. The residue number is always appended to residue label. You may specify a one or thee letter residue labels using '--pocketLabelType' option.
Display one or three letter residue labels on fpocket residues
Surfaces around fpocket 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 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.
In addition, generic surfaces colored by '--surfaceColor' are always created for pockets.
Scaling factor for spheres used to display fpocket alpha spheres.
Transparency for spheres used to display fpocket alpha spheres.
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 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.
In addition, generic surfaces colored by '--surfaceColor' are always created for chains.
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 groups of atoms.
The default values for color types 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 all fpockets available in a directory <PDBRoot>_out for the first chain, along pocket residues and surfaces, in a PDB file, and generate a PML file in a new directory <PDBRoot>_out_pymol, type:
To rerun the first example without displaying pocket residue labels, coloring pockets by element type, and write out a PML file, type:
To rerun the first example to visualize only top 5 fpockets and write out a PML file, type:
To rerun the first example to visualize a specific set of fpockets and write out a PML file, type:
To rerun the first example without displaying hydrophobic and charge surfaces around chain and pockets and and write out a PML file, type:
To visualize top 5 fpockets available in a directories <PDBRoot>_out for the first chain, along pocket residues and surfaces, in PDB files, aligning first fchain in each input file to the first chain in first input file, and generate a PML file in a new directory <PDBRoot>_out_pymol, type:
To visualize top 5 fpockets available in a directories <PDBRoot>_out for the first chain, along pocket residues and surfaces, in PDB files, aligning first chain in each input file to the first chain in first chain in a specified PDB file using a specified alignment method,, and generate a PML file in a new directory <PDBRoot>_out_pymol, type:
Manish Sud
Joann Prescott-Roy and Pat Walters
DownloadPDBFiles.pl, PyMOLVisualizeCavities.py, PyMOLVisualizeCryoEMDensity.py, PyMOLVisualizeElectronDensity.py, PyMOLVisualizeInterfaces.py, PyMOLVisualizeMacromolecules.py, PyMOLVisualizeSurfaceAndBuriedResidues.py
Copyright (C) 2024 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.