Anchor

sealed class Anchor

Types

Link copied to clipboard
class Double(mol: Molecule, a: Atom, b: Atom, c: Atom, d: Atom) : Anchor
Link copied to clipboard
class Single(mol: Molecule, a: Atom, b: Atom, c: Atom) : Anchor

Functions

Link copied to clipboard
abstract fun align(atoms: Set<Atom>, anchorCoords: ConfLib.AnchorCoords)

Transforms the given atoms from the ConfLib coordinate system into the molecular coordinate system.

Link copied to clipboard
abstract fun bondToAnchors(anchor: ConfLib.Anchor, bondFunc: (List<ConfLib.AtomInfo>, Atom) -> Unit)
Link copied to clipboard
abstract fun connectedAtomsIsSingleComponent(atoms: Set<Atom>): Boolean
Link copied to clipboard
abstract fun copyToMol(mol: Molecule, oldToNew: AtomMap): Anchor
Link copied to clipboard
fun findResidue(): Polymer.Residue?

Returns the residue of the first anchor atom, if any

Link copied to clipboard
abstract fun getConnectedAtoms(atoms: Set<Atom>): MutableSet<Atom>

Filters the given atoms down to just the ones connected to the anchor atoms.

Link copied to clipboard
abstract fun isAnchorCompatible(anchor: ConfLib.Anchor): Boolean
Link copied to clipboard
abstract fun makeLibraryAnchor(atoms: Set<Atom>, id: Int, getAtomInfo: (Atom) -> ConfLib.AtomInfo): ConfLib.Anchor

Translate the molecule anchor atoms into a ConfLib anchor definition

Link copied to clipboard
abstract fun makeLibraryCoords(): ConfLib.AnchorCoords

Properties

Link copied to clipboard
abstract val anchorAtoms: List<Atom>
Link copied to clipboard
val mol: Molecule

Inheritors

Link copied to clipboard
Link copied to clipboard