Biopolymer Class Reference

#include <Compound.h>

Inheritance diagram for Biopolymer:

Molecule Compound PIMPLHandle Protein RNA

List of all members.


Detailed Description

The base class for DNA, RNA, and Protein molecules.

Contains an ordered list of BiopolymerResidue subcompounds. Derives from Molecule. (though that may not be obvious in the automatically generated API documentation).

Public Types

typedef String Sequence
 String representing the sequence of a Protein or nucleic acid (DNA or RNA).

Public Member Functions

 Biopolymer ()
 Default constructore for Biopolymer.
int getNResidues () const
const BiopolymerResiduegetResidue (Compound::Index residueIndex) const
BiopolymerResidueupdResidue (Compound::Index residueIndex)
const BiopolymerResiduegetResidue (Compound::Name residueName) const
BiopolymerResidueupdResidue (Compound::Name residueName)
Compound::Name getResidueName (int residueIndex) const
BiopolymerrenumberPdbResidues (int firstPdbResidueNumber)
 This method renumbers the PDB Residue Numbers of the biopolymer chain to start at the supplied integer and increase consecutively.
void assignBiotypes ()
 Attempt to automatically assign a Biotype to each atom.
void appendResidue (const Compound::Name &resName, const BiopolymerResidue &residue)
 Attach a new residue onto the end of the current Biopolymer chain.
void appendResidue (const Compound::Name &resName, const BiopolymerResidue &residue, BondMobility::Mobility mobility)
 Attach a new residue onto the end of the current Biopolymer chain.
 SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (Biopolymer, BiopolymerRep, Molecule)


Member Typedef Documentation

typedef String Sequence

String representing the sequence of a Protein or nucleic acid (DNA or RNA).

For use in Biopolymer constructor.


Constructor & Destructor Documentation

Biopolymer (  ) 

Default constructore for Biopolymer.

Produces a Biopolymer with no atoms nor residues.


Member Function Documentation

int getNResidues (  )  const

Returns:
The number of residues in the polymer chain.

Referenced by main().

const BiopolymerResidue& getResidue ( Compound::Index  residueIndex  )  const

Warning:
The residueIndex is ordinarily NOT the same as the PdbResidueNumber of the BiopolymerResidue.
Returns:
A read-only reference to a BiopolymerResidue subcompound of this Biopolymer molecule
Parameters:
residueIndex  integer index of residue in context of this Biopolymer, in the range zero (0) to (getNResidues() - 1).

Referenced by main().

BiopolymerResidue& updResidue ( Compound::Index  residueIndex  ) 

Warning:
The residueIndex is ordinarily NOT the same as the PdbResidueNumber of the BiopolymerResidue.
Returns:
A mutable reference to a BiopolymerResidue subcompound of this Biopolymer molecule
Parameters:
residueIndex  integer index of residue in context of this Biopolymer, in the range zero (0) to (getNResidues() - 1).

Referenced by main(), and RNA::setRNABondMobility().

const BiopolymerResidue& getResidue ( Compound::Name  residueName  )  const

Returns:
A read-only reference to a BiopolymerResidue subcompound of this Biopolymer molecule
Parameters:
residueName  a Compound::Name for the BiopolymerResidue from the viewpoint of this Biopolymer.

BiopolymerResidue& updResidue ( Compound::Name  residueName  ) 

Returns:
A mutable reference to a BiopolymerResidue subcompound of this Biopolymer molecule
Parameters:
residueName  a Compound::Name for the BiopolymerResidue from the viewpoint of this Biopolymer.

Compound::Name getResidueName ( int  residueIndex  )  const

Warning:
The residueIndex is ordinarily NOT the same as the PdbResidueNumber of the BiopolymerResidue.
Returns:
A Compound::Name for a BiopolymerResidue from the viewpoint of this containing Biopolymer.
Parameters:
residueIndex  integer index of residue in context of this Biopolymer, in the range zero (0) to (getNResidues() - 1).

Biopolymer& renumberPdbResidues ( int  firstPdbResidueNumber  ) 

This method renumbers the PDB Residue Numbers of the biopolymer chain to start at the supplied integer and increase consecutively.

Returns:
A reference to this Biopolymer.

void assignBiotypes (  ) 

Attempt to automatically assign a Biotype to each atom.

Biotype assignments for each atom in a compound are required to match atoms to force field parameters. Residue name and atom name, including synonyms, are used to identify Biotypes. Previous loading of relevant Biotypes from a force field definition may be required for the assignBiotypes() method to work.

Referenced by integrate(), and main().

void appendResidue ( const Compound::Name resName,
const BiopolymerResidue residue 
)

Attach a new residue onto the end of the current Biopolymer chain.

Parameters:
resName  new name for the new residue, local to this parent Biopolymer.
residue  template residue to copy onto the end of the chain. The residue will be copied, not incorporated.

Referenced by RNA::RNA().

void appendResidue ( const Compound::Name resName,
const BiopolymerResidue residue,
BondMobility::Mobility  mobility 
)

Attach a new residue onto the end of the current Biopolymer chain.

Parameters:
resName  new residue name, from the viewpoint of this parent Biopolymer
residue  template residue to copy onto the end of the chain. The residue will be copied, not incorporated.
mobility  allowed motion of the new bond connecting the new residue to the rest of the chain

SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( Biopolymer  ,
BiopolymerRep  ,
Molecule   
)


The documentation for this class was generated from the following file:

Generated on Fri Sep 26 07:44:33 2008 for SimTKcore by  doxygen 1.5.6