Mapping Functions

These functions convert one residue into another. They are primarily used for standard and modified amino acids.

CopyResidue(src_res, dst_res, editor)

This function copies atoms from a source residue to a destination residue. It calls either CopyConserved() or CopyNonConserved() depending on whether the residues are identical or not.

Parameters:
  • src_res (ResidueHandle) – The source residue.

  • dst_res (ResidueHandle) – The destination residue.

  • editor (EntityEditor) – The editor to use for the copy operation.

Returns:

The number of atoms copied.

CopyConserved(src_res, dst_res, editor)

This function copies atoms under the assumption that the source and destination residues are identical or that the source is a modified version of the destination. It handles modifications and converts selenium to sulfur for specific residues.

Parameters:
  • src_res (ResidueHandle) – The source residue.

  • dst_res (ResidueHandle) – The destination residue.

  • editor (EntityEditor) – The editor to use for the copy operation.

Returns:

The number of atoms copied.

CopyNonConserved(src_res, dst_res, editor)

This function copies heavy backbone atoms and CBeta from the source to the destination.

Parameters:
  • src_res (ResidueHandle) – The source residue.

  • dst_res (ResidueHandle) – The destination residue.

  • editor (EntityEditor) – The editor to use for the copy operation.

Returns:

The number of atoms copied.

Search

Enter search terms or a module, class or function name.

Contents

Documentation is available for the following OpenStructure versions:

(Currently viewing dev) / 2.11 / 2.10 / 2.9.2 / 2.9.1 / 2.9.0 / 2.8 / 2.7 / 2.6 / 2.5 / 2.4 / 2.3.1 / 2.3 / 2.2 / 2.1 / 2.0 / 1.11 / 1.10 / 1.9 / 1.8 / 1.7.1 / 1.7 / 1.6 / 1.5 / 1.4 / 1.3 / 1.2 / 1.1

This documentation is still under heavy development!
If something is missing or if you need the C++ API description in doxygen style, check our old documentation for further information.