PyMOLCalculatePhiPsiAngles.py - Calculate phi and psi torsion angles
PyMOLCalculatePhiPsiAngles.py [--chainIDs <First, All or ID1,ID2...>] [--outMode <SingleFile or MultipleFies>] [--outChainID <yes or no>] [--outCategory <yes or no>] [--overwrite] [--precision <number>] [-w <dir>] -i <infile> -o <outfile>
PyMOLCalculatePhiPsiAngles.py -h | --help | -e | --examples
Calculate phi and psi torsion angels for amino acid residues present in macromolecules.
The phi and psi angles are categorized into the following groups corresponding to four types of Ramachandran plots:
The supported input file format are: PDB (.pdb), mmCIF (.cif)
The supported output file formats are: CSV (.csv), TSV (.tsv, .txt)
List of chain IDs to use for calculating phi and psi angles for residues in chains. Possible values: First, All, or a comma delimited list of chain IDs. The default is to use all chain IDs in input file.
Print examples.
Print this help message.
Input file name.
Output file name for writing out calculated values. Supported text file extensions: csv, tsv or txt.
In addition to the specified outfile containing phi and psi angles for all residues, a set of additional output files is generated for 'MultipleFiles' value of '--outMode' option. The names of these output files are automatically generated from the the name of the specified output file as shown below:
A single output file containing phi and psi angles for all residues or multiple output files corresponding to different categories of angles.
The phi and psi angles are categorized into the following groups corresponding to four types of Ramachandran plots:
The output files contain the following information:
Write chain IDs to output file.
Write phi and psi category to output file.
Overwrite existing files.
Floating point precision for writing the calculated phi and psi angles.
Location of working directory which defaults to the current directory.
To calculate phi and psi angles for all residues across all chains in input file and write out a single CSV file containing calculated values along with chain IDs, residue names and numbers, and category of angles corresponding to Ramachandran plots, type:
To calculate phi and psi angles for all residues across all chains in input file and write out a multiple CSV files corresponding to categories of angles for Ramachandran plots along with other relevant information, type:
To calculate phi and psi angles for all residues in a specific chain in input file and write out a single TSV file containing calculated values along with other relevant information, type:
To calculate phi and psi angles for all residues in a specific chain in input file and write out a multiple TSV files containing calculated values at a specific precision along with other relevant information, type:
DownloadPDBFiles.pl, PyMOLCalculateRMSD.py, PyMOLCalculateProperties.py, PyMOLGenerateRamachandranPlots.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.