PyMOLExtractSelection.py - Extract selection from a macromolecule
PyMOLExtractSelection.py [--overwrite] [--selectionAppend <yes or no>] [-w <dir>] -i <infile> -o <outfile> -s <selection>
PyMOLExtractSelection.py -h | --help | -e | --examples
Extract data corresponding to a PyMOL selection specification from a macromolecule in an input file and write it out to an output file.
The selection specification must be a valid PyMOL specification. No validation is performed.
The supported input file format are: PDB (.pdb) and CIF (.cif)
The supported output file formats are: PDB (.pdb) and CIF (.cif)
Print examples.
Print this help message.
Input file name.
Output file name.
Selection specification for extracting data from a macromolecule in an input file. The selection specification must be a valid PyMOL specification. No Validation is performed.
The specified selection specification is optionally appended to PyMOL object name for input file.
Append specified selection specification to PyMOL object name for input file before creating PyMOL object for a specified selection specification. The PyMOL object name for input file is <InfileRoot>.
You may choose to explicitly specify PyMOL object name in the selection specification instead of automatically appending it to the selection.
Overwrite existing files.
Location of working directory which defaults to the current directory.
To extract all data corresponding to chain E in a macromolecule and write out to a PDB file, type:
To extract only polymer chain data for chains E and I in a macromolecule and write out to a PDB file, type:
To extract only polymer chain data for chain E in a macromolecule and write out to a PDB file, type:
To extract only polymer chain data for chain E in a macromolecule by explicitly ignoring non-polymer chain data and write out to a CIF file, type:
To extract solvent data corresponding to chain E in a macromolecule and write out to a PDB file, type:
To extract ligand data corresponding to chain E in a macromolecule and write out to a PDB file, type:
To extract binding pocket residues with 5.0 of ligand ID ADP in chain E and write out a PDB file, type:
PyMOLAlignChains.py, PyMOLSplitChainsAndLigands.py, PyMOLVisualizeMacromolecules.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.