Source for file Residue_PDB.php
Documentation is available at Residue_PDB.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Jesus M. Castagnetto <jmcastagnetto@php.net> |
// +----------------------------------------------------------------------+
require_once "Science/Chemistry.php";
require_once "Science/Chemistry/Atom_PDB.php";
require_once "Science/Chemistry/Molecule.php";
* Represents a PDB residue
* @author Jesus M. Castagnetto <jmcastagnetto@php.net>
* @package Science_Chemistry
* PDB Residue sequence number
* $id = "$name:$seq_num:$chain"
* PDB ID for the protein that contains
* If the PDB residue object has been initialized
* Reference to the protein
* to which this residue belongs
* @var object Science_Chemistry_Macromolecule_PDB
* Constructor for the class
* @param string $pdb PDB if of the protein/nucleic acid/etc.
* @param array $atomrec_arr Array of PDB atom record lines
* @param object Science_Chemistry_Macromolecule_PDB $macromol reference to the containing macromolecule
* @return object Science_Chemistry_Residue_PDB
for ($i=0; $i < count($atomrec_arr); $i++ ) {
if (!empty ($this->atoms)) {
$line = & $atomrec_arr[0 ];
$this->id = $this->name. ":". $this->seq_num. ":". $this->chain;
* Calculates geometrical parameters for the residue
* Backbone bond distances, angles and torsions
function calcGeomParams() {
* Returns geometrical parameter for the residue
* One of: bonds, angles, torsions, or chis
function getGeomParams($param) {
} // end of Science_Chemistry_Residue_PDB class
// vim: expandtab: ts=4: sw=4
Documentation generated on Mon, 11 Mar 2019 15:48:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|