DesignPosition

class DesignPosition(name: String, type: String, mol: Molecule)

A position in a molecule that allows removing the existing atoms and aligning and attaching other conformations via an anchor atom system.

Constructors

Link copied to clipboard
fun DesignPosition(name: String, type: String, mol: Molecule)

Types

Link copied to clipboard
data class AnchorMatch(posAnchors: List<Anchor>, fragAnchors: List<ConfLib.Anchor>)
Link copied to clipboard
class IllegalAnchorsException(msg: String, pos: DesignPosition) : IllegalStateException
Link copied to clipboard
class IncompatibleAnchorsException(pos: DesignPosition, frag: ConfLib.Fragment) : RuntimeException

Functions

Link copied to clipboard
fun anchorDouble(a: Atom, b: Atom, c: Atom, d: Atom): Anchor.Double
Link copied to clipboard
fun anchorSingle(a: Atom, b: Atom, c: Atom): Anchor.Single
Link copied to clipboard
fun compatibleFragments(conflib: ConfLib): List<ConfLib.Fragment>
Link copied to clipboard
fun findAnchorMatch(frag: ConfLib.Fragment): DesignPosition.AnchorMatch?
Link copied to clipboard
fun getCurrentAnchorGroups(): List<MutableList<Anchor>>

Looks at the current atoms and the bonding pattern to see which anchor group is currently in use.

Link copied to clipboard
fun isFragmentCompatible(frag: ConfLib.Fragment): Boolean

Returns true iff all the fragment's anchors are compatible with this design position.

Link copied to clipboard
fun makeFragment(fragId: String, fragName: String, confId: String = fragId, confName: String = fragName, motions: List<ConfLib.ContinuousMotion> = emptyList()): ConfLib.Fragment

Makes a fragment from the source atoms and coords.

Properties

Link copied to clipboard
val anchorGroups: MutableList<MutableList<Anchor>>

Anchor atoms are used to bond and align conformations to the molecule.

Link copied to clipboard
val mol: Molecule
Link copied to clipboard
var name: String
Link copied to clipboard
val sourceAtoms: MutableSet<Atom>

The atoms that will be replaced or re-located by the next conformation. Needs to be initialized when creating a new design position.

Link copied to clipboard
var type: String