Single

class Single(mol: Molecule, a: Atom, b: Atom, c: Atom) : Anchor

Functions

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

Aligns the attached atoms such that: anchors a coincide anchor vectors a-b are parallel and in the same direction anchor planes a,b,c are parallel This alignment method exactly aligns the two coordinate systems without approximation.

Link copied to clipboard
open override fun bondToAnchors(anchor: ConfLib.Anchor, bondFunc: (List<ConfLib.AtomInfo>, Atom) -> Unit)
Link copied to clipboard
open override fun connectedAtomsIsSingleComponent(atoms: Set<Atom>): Boolean
Link copied to clipboard
fun copy(mol: Molecule = this.mol, a: Atom = this.a, b: Atom = this.b, c: Atom = this.c): Anchor.Single
Link copied to clipboard
open override fun copyToMol(mol: Molecule, oldToNew: AtomMap): Anchor.Single
Link copied to clipboard
fun findResidue(): Polymer.Residue?

Returns the residue of the first anchor atom, if any

Link copied to clipboard
open override 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
open override fun isAnchorCompatible(anchor: ConfLib.Anchor): Boolean
Link copied to clipboard
open override fun makeLibraryAnchor(atoms: Set<Atom>, id: Int, getAtomInfo: (Atom) -> ConfLib.AtomInfo): ConfLib.Anchor.Single

Translate the molecule anchor atoms into a ConfLib anchor definition

Link copied to clipboard
open override fun makeLibraryCoords(): ConfLib.AnchorCoords.Single

Properties

Link copied to clipboard
val a: Atom
Link copied to clipboard
open override val anchorAtoms: List<Atom>
Link copied to clipboard
val b: Atom
Link copied to clipboard
val c: Atom
Link copied to clipboard
val mol: Molecule