GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - greatlse/pdbtools: A set of tools for manipulating and doing calculations on wwPDB macromolecule structure files

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

59 Commits
59 Commits

Folders and files

NameName
Last commit message
Last commit date
charmm
charmm
 
 
development
development
 
 
helper
helper
 
 
pdb_data
pdb_data
 
 
satk
satk
 
 
COPYING
COPYING
 
 
README
README
 
 
README.md
README.md
 
 
__init__.py
__init__.py
 
 
pdb_addH.py
pdb_addH.py
 
 
pdb_atom_renumber.py
pdb_atom_renumber.py
 
 
pdb_bfactor.py
pdb_bfactor.py
 
 
pdb_centerasu.py
pdb_centerasu.py
 
 
pdb_centermass.py
pdb_centermass.py
 
 
pdb_clean.py
pdb_clean.py
 
 
pdb_closecontacts.py
pdb_closecontacts.py
 
 
pdb_contact.py
pdb_contact.py
 
 
pdb_contactplot.py
pdb_contactplot.py
 
 
pdb_coulomb.py
pdb_coulomb.py
 
 
pdb_dist-filter.py
pdb_dist-filter.py
 
 
pdb_disulfide.py
pdb_disulfide.py
 
 
pdb_download.py
pdb_download.py
 
 
pdb_exper.py
pdb_exper.py
 
 
pdb_iondist.py
pdb_iondist.py
 
 
pdb_ligand.py
pdb_ligand.py
 
 
pdb_moment.py
pdb_moment.py
 
 
pdb_mutator.py
pdb_mutator.py
 
 
pdb_neighbors.py
pdb_neighbors.py
 
 
pdb_offset.py
pdb_offset.py
 
 
pdb_oligomer.py
pdb_oligomer.py
 
 
pdb_param.py
pdb_param.py
 
 
pdb_pdb2dir.py
pdb_pdb2dir.py
 
 
pdb_residue_renumber.py
pdb_residue_renumber.py
 
 
pdb_sasa.py
pdb_sasa.py
 
 
pdb_satk.py
pdb_satk.py
 
 
pdb_seq.py
pdb_seq.py
 
 
pdb_splitnmr.py
pdb_splitnmr.py
 
 
pdb_subset.py
pdb_subset.py
 
 
pdb_torsion.py
pdb_torsion.py
 
 
pdb_watercontact.py
pdb_watercontact.py
 
 

Repository files navigation

#pdbtools

A set of tools for manipulating and doing calculations on wwPDB macromolecule structure files

##Introduction pdbTools is a set of command line python scripts that manipulate wwPDB protein and nucleic acid structure files. There are many programs, both open source and proprietary, that perform similar tasks; however, most of these tools are buried within programs of larger functionality. Thus, relatively simple calculations often involve learning a new program, compiling modules, and installing libraries. To fill a niche (and get the tasks done that I needed done), I started writing my own toolset. This has evolved into the pdbTools suite. The suite of programs is characterized by the following philosophy:

  • Each program should run as a stand-alone application with a standard, GNU/POSIX style command line interface.
  • Each program should be written in such a way to allow it to be used as a library of functions for more complex programs.
  • Programs should require a minimum of external dependencies.

Most of the scripts will run "out of the box" using a python interpreter. The command line parser is designed to be flexible. It will take an arbitrarily long list of pdb files, pdb ids, text files with pdb ids, or some mixture of all three. If the pdb file or id is not in the working directory, scripts will attempt to download the pdb file from RCSB. Depending on the type of operation being done, a program will either write output files in the working directory or will print to stdout. All structure outputs are written in standard pdb format. All data outputs are in fixed-width column format. They were designed to be read by the statistics package R; however, they should be easily parsed by other graphing programs.

Note: These scripts are only compatible with Python version 2.4-2.7.

##Current functions

###Miscellaneous

  • download pdb files from the RCSB database: pdb_download.py

###Structure-based calculations ####Geometry

  • calculate protein center of mass: pdb_centermass.py
  • calculate distance distributions: pdb_dist-filter.py, pdb_ion_dist.py
  • calculate backbone torsion angles: pdb_torsion.py
  • calculate atom-by-atom solvent accessibility pdb_sasa.py [requires NACCESS](http://www.bioinf.manchester.ac.uk/naccess/ NACCESS)
  • find disulfide bonds based on distance: pdb_disfulfide.py
  • find residues within some distance of each other: pdb_contact.py, pdb_water-contact.py, pdb_close-contacts.py
  • find number of atoms neighboring another: pdb_neighbors.py
  • find ligands in structure file (ignoring boring ligands like water): pdb_ligand.py
  • figure out oligomerization state of macrmolecule: pdb_oligomer.py

####Energy calculation

  • calculate coulomb energy: pdb_coulomb.py
  • calculate the dipole moment of the protein: pdb_moment.py
  • calculate pKa of ionizable groups using the Solvent-Accessibility-modified Tanford-Kirkwood method pdb_satk.py (requires fortran compiler) ####Structure properties
  • extract structure experiment properties: pdb_exper.py
  • extract protein sequence from structure: pdb_seq.py
  • calculate theoretical pI, MW, fraction titratable residues, charge: pdb_param.py

###File/structure manipulation

  • add polar hydrogens: pdb_addH.py requires CHARMM
  • add missing heavy atoms, remove alternate conformations, etc.: pdb_clean.py requires CHARMM
  • mutate a residue: pdb_mutator.py requires CHARMM
  • renumber atoms: pdb_atom-renumber.py
  • renumber residues: pdb_residue-renumber.py
  • offset all residues by a fixed amount: pdb_offset.py
  • center protein in xyz space: pdb_centermass.py
  • places the asymmetric unit inside the unit cell: pdb_centerasu.py
  • take subset of residues from file: pdb_subset.py
  • split an NMR ensemble structure into individual files: pdb_splitnmr.py
  • take a set of pdb files and create an individual directory for each one: pdb_pdb2dir.py
  • load data into the b-factor column: pdb_bfactor.py

Some of the programs are written as interfaces to other programs: CHARMM, [NACCESS](http://www.bioinf.manchester.ac.uk/naccess/ NACCESS), which must be downloaded and installed separately if their functions are desired. To use pdb_satk.py, a set of fortran packages must be compiled.

##Usage

Almost all programs in the pdbTools suite have the same usage:

pdb_XXXX.py pdb_input optional_args > output

pdb_input can be one of the following (in any arbitrary combination):

  • pdb files
  • directories of pdb files
  • four-character pdb ids
  • text files containing whitespace delimited (i.e. space, tab, carriage return) lists of any combination of the other allowed types of arguments. If the list of arguments contains pdb files or ids that do not exist locally, the parser will attempt to download the files from the RCSB database.

optional_args: Although the arguments to each program are identical, the options are quite different depending on the program requirements. The best way to learn how to use a particular program is to type pdb_XXXX.py --help. This will spit out a list of available options. In most cases, the options are actually optional: the program will use a sane default if none is specified. In some cases (notably pdb_mutator.py), options must be specified for the program to run.

output: Most scripts dump out a pdb file to standard out. This can be captured using the ">" redirect. Some write an output file that uses the name of the input pdb file as a suffix (e.g. pdb_close-contacts.py 1stn.pdb creates a file called 1stn.pdb.close_contacts).

##Third Party Software Some scripts require installation of third-party programs. These should be installed according to the instructions given by the third-party, then placed into the $PATH variable. To use the scripts that require CHARMM, the $CHARMM environment variable must be set to the directory containing the charmm binary and the $CHARMM_LIB environment variable to the directory containing the charmm parameter files.

##Contributing If you find a bug or have an idea for a program you'd like in this package, feel free to open an issue. Even better: feel free to make a pull request!

##Project Owner Mike Harms (https://github.com/harmsm, http://harmslab.uoregon.edu)

About

A set of tools for manipulating and doing calculations on wwPDB macromolecule structure files

Resources

Readme
GPL-3.0 license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.