FixedAtoms

class FixedAtoms(confSpaceIndex: ConfSpaceIndex)

A place to store all the atoms of the wild-type molecules in a conf space, where each atom is unambiguously assigned to either the static region or a design position.

The 'fixed' atoms in a conformation space are the atoms that do not get modified when swiching conformations at design positions.

Among the fixed atoms, the 'dyanmic' atoms are the atoms whose forcefield parameters change when switching conformations, since switching conformations can cause the forcefield parameters of nearby atoms to change.

The remaining fixed atoms are the 'static' atoms.

Dynamic fixed atoms are migrated to the atom lists of the design positions in the compiled conformation space, so their forcefield parameters can be applied correctly after a conformation change.

Each static fixed atom is also assigned an index, so it can be efficiently referred to in the compiled conf space.

Constructors

Link copied to clipboard
fun FixedAtoms(confSpaceIndex: ConfSpaceIndex)

Types

Link copied to clipboard
class ClaimedAtomException(fragInfo: ConfSpaceIndex.FragInfo, atom: Atom) : IllegalArgumentException
Link copied to clipboard
data class DynamicInfo(atom: Atom, index: Int, fragInfo: ConfSpaceIndex.FragInfo)
Link copied to clipboard
inner class PosInfo(posInfo: ConfSpaceIndex.PosInfo)
Link copied to clipboard
data class StaticInfo(moli: Int, mol: Molecule, atom: Atom, index: Int, name: String)

Functions

Link copied to clipboard
fun fixed(moli: Int): List<Atom>
Link copied to clipboard
operator fun get(posInfo: ConfSpaceIndex.PosInfo): FixedAtoms.PosInfo
Link copied to clipboard
fun getStatic(atom: Atom): FixedAtoms.StaticInfo
Link copied to clipboard
fun isStatic(atom: Atom): Boolean
Link copied to clipboard
fun staticAtomsByMol(assignments: Assignments): List<List<Atom>>

Returns the static atoms in the indexed order.

Link copied to clipboard
fun updateStatic()

Remove all dyanmic atoms from the fixed atoms. Moves any remaining fixed atoms into the static atoms list. The fixed atoms list will be empty afterwards.

Properties

Link copied to clipboard
val mols: List<Molecule>
Link copied to clipboard
val staticAtomsByMol: List<List<Atom>>
Link copied to clipboard
val statics: List<FixedAtoms.StaticInfo>