#include <Compound.h>
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 BiopolymerResidue & | getResidue (Compound::Index residueIndex) const |
BiopolymerResidue & | updResidue (Compound::Index residueIndex) |
const BiopolymerResidue & | getResidue (Compound::Name residueName) const |
BiopolymerResidue & | updResidue (Compound::Name residueName) |
Compound::Name | getResidueName (int residueIndex) const |
Biopolymer & | renumberPdbResidues (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) |
String representing the sequence of a Protein or nucleic acid (DNA or RNA).
For use in Biopolymer constructor.
Biopolymer | ( | ) |
Default constructore for Biopolymer.
Produces a Biopolymer with no atoms nor residues.
int getNResidues | ( | ) | const |
const BiopolymerResidue& getResidue | ( | Compound::Index | residueIndex | ) | const |
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 | ) |
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 |
residueName | a Compound::Name for the BiopolymerResidue from the viewpoint of this Biopolymer. |
BiopolymerResidue& updResidue | ( | Compound::Name | residueName | ) |
residueName | a Compound::Name for the BiopolymerResidue from the viewpoint of this Biopolymer. |
Compound::Name getResidueName | ( | int | residueIndex | ) | const |
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.
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.
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.
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 | ||||
) |