Patch residues are similar to regular residues, except that they are used to modify an existing residue. Any atoms they contain replace or add to those in the residue; they can also remove atoms. Atom names are as for regular residues, except for patches that affect two residues (e.g. DISU, LINK) in which each atom contains a 1: or 2: prefix to identify the residue which will be patched.
Public Member Functions | |
void | add_deleted_atom (std::string name) |
void | apply (CHARMMResidueTopology &res1, CHARMMResidueTopology &res2) const |
Apply the patch to the given pair of residues. | |
void | apply (CHARMMResidueTopology &res) const |
Apply the patch to the residue, modifying its topology accordingly. | |
CHARMMPatch (std::string type) |
void IMP::atom::CHARMMPatch::apply | ( | CHARMMResidueTopology & | res1, | |
CHARMMResidueTopology & | res2 | |||
) | const |
Apply the patch to the given pair of residues.
This can only be used for special two-residue patches, such as DISU or LINK. In a two-residue patch, each atom has a 1: or 2: prefix to identify the residue it refers to.
ValueException | if the patch is not a two-residue patch. |
void IMP::atom::CHARMMPatch::apply | ( | CHARMMResidueTopology & | res | ) | const |
Apply the patch to the residue, modifying its topology accordingly.
IMP
prohibits this. To allow an already-patched residue to be re-patched, first call CHARMMResidueTopology::set_patched(false).