/ . / _chimera / Molecule
Molecule() -> Molecule
constants:
- DefaultBondRadius = 0.20000000298
- selLevel = 1
attributes:
- activeCoordSet: CoordSet
- atoms: list of Atom
- atomsMoved: set of Atom
- autochain: bool
- ballScale: float
- bonds: list of Bond
- clipPlane: Plane
- clipThickness: float
- color: Color
- coordSets: dict of (int, CoordSet)
- display: bool
- id: int
- idatmValid: bool
- lineWidth: float
- lowerCaseChains: bool
- mol2comments: list of str
- mol2data: list of str
- name: str
- openState: OpenState
- pdbHeaders: dict of (str, list of str)
- pointSize: float
- residues: list of Residue
- ribbonHidesMainchain: bool
- showStubBonds: bool
- stickScale: float
- structureAssigned: bool
- subid: int
- surfaceColor: Color
- surfaceOpacity: float
- useClipPlane: bool
- useClipThickness: bool
- vdwDensity: float
- wireStipple: (int,int)
Methods
|
|
|
oslTestAbbr
|
oslTestAbbr ( self, a )
oslTestAbbr(a: OSLAbbreviation) -> bool
|
|
newCoordSet
|
newCoordSet ( self, key )
newCoordSet(key: int) -> CoordSet
newCoordSet(key: int, size: int) -> CoordSet
|
|
intersects
|
intersects (
self,
p,
lens,
)
intersects(p: Plane, lens: Lens = None) -> bool
|
|
setAllPDBHeaders
|
setAllPDBHeaders ( self, hs )
setAllPDBHeaders(hs: dict of (str, list of str))
|
|
bsphere
|
bsphere ( self, lens )
bsphere(lens: Lens = None) -> bool, Sphere
|
|
residueBefore
|
residueBefore ( self, r )
residueBefore(r: Residue) -> Residue
|
|
sequences
|
sequences ( self )
arguments/return value unknown
return all non-trivial sequences in a molecule
This function is also available as molecule.sequences(...)
returns a list of sequences for the given molecule, one sequence per
multi-residue chain. The sequence name is "Chain X" where X is
the chain ID, or "Principal chain" if there is no chain ID.
The residues attribute of each sequence is a list of the
residues for that sequence, and the attribute resmap is a
dictionary that maps residue to sequence position (zero-based).
The residues attribute will self-delete if the corresponding
model is closed.
If asDict is true, return a dictionary of Sequences keyed on
chain ID (can throw AssertionError if multiple chains have same ID),
otherwise return a list.
|
|
primaryAtoms
|
primaryAtoms ( self )
primaryAtoms() -> list of Atom
|
|
traverseAtoms
|
traverseAtoms ( self, root )
traverseAtoms(root: Root) -> list of Atom
|
|
decrHyds
|
decrHyds ( self )
decrHyds()
|
|
deleteCoordSet
|
deleteCoordSet ( self, element )
deleteCoordSet(element: CoordSet)
|
|
findAtom
|
findAtom ( self, i )
findAtom(i: int) -> Atom
|
|
findResidue
|
findResidue ( self, i )
findResidue(i: int) -> Residue
findResidue(rid: MolResId, type: str = None) -> Residue
|
|
deleteBond
|
deleteBond ( self, element )
deleteBond(element: Bond)
|
|
oslChildren
|
oslChildren ( self )
oslChildren() -> list of Selectable
|
|
roots
|
roots ( self, ignoreBreakPoints )
roots(ignoreBreakPoints: bool) -> list of Root
|
|
ribbonCoordinates
|
ribbonCoordinates ( self, a )
ribbonCoordinates(a: Atom) -> Point
|
|
setPDBHeader
|
setPDBHeader (
self,
k,
v,
)
setPDBHeader(k: str, v: list of str)
|
|
addPDBHeader
|
addPDBHeader (
self,
k,
h,
)
addPDBHeader(k: str, h: str)
|
|
newAtom
|
newAtom (
self,
n,
e,
)
newAtom(n: str, e: Element) -> Atom
|
|
computeBounds
|
computeBounds ( self, lens )
computeBounds(lens: Lens = None) -> bool, Sphere, BBox
|
|
sequence
|
sequence ( self )
arguments/return value unknown
Get the Sequence of the specified chain
Uses the getSequences function (below) and accepts the same
keywords. Throws KeyError if the specified chain isn't found,
and AssertionError if there are multiple chains with the
specified ID.
|
|
allRings
|
allRings (
self,
crossResidues,
allSizeThreshold,
)
allRings(crossResidues: bool, allSizeThreshold: int) -> set of Ring
|
|
removeAssociatedModel
|
removeAssociatedModel ( self, model )
removeAssociatedModel(model: Model)
|
|
deleteResidue
|
deleteResidue ( self, element )
deleteResidue(element: Residue)
|
|
deleteAtom
|
deleteAtom ( self, element )
deleteAtom(element: Atom)
|
|
printComponents
|
printComponents ( self )
printComponents()
|
|
computeIdatmTypes
|
computeIdatmTypes ( self )
computeIdatmTypes()
|
|
useAsRoot
|
useAsRoot ( self, newRoot )
useAsRoot(newRoot: Atom)
|
|
destroy
|
destroy ( self )
destroy()
|
|
newBond
|
newBond (
self,
a0,
a1,
)
newBond(a0: Atom, a1: Atom) -> Bond
|
|
addAssociatedModel
|
addAssociatedModel ( self, model )
addAssociatedModel(model: Model)
|
|
pseudoBondMgr
|
pseudoBondMgr ( self, cs )
pseudoBondMgr(cs: CoordSet = None) -> PseudoBondMgr
|
|
oslParents
|
oslParents ( self )
oslParents() -> list of Selectable
|
|
oslIdent
|
oslIdent (
self,
start,
end,
)
oslIdent(start: int = SelDefault, end: int = SelDefault) -> str
|
|
moveResAfter
|
moveResAfter (
self,
from_,
to,
)
moveResAfter(from: Residue, to: Residue)
|
|
findCoordSet
|
findCoordSet ( self, i )
findCoordSet(i: int) -> CoordSet
|
|
sortedAtoms
|
sortedAtoms ( self )
sortedAtoms() -> list of Atom
|
|
computeSecondaryStructure
|
computeSecondaryStructure (
self,
energyCutoff,
minHelixLength,
minStrandLength,
)
computeSecondaryStructure(energyCutoff: float = -0.5, minHelixLength: int = 3, minStrandLength: int = 3)
|
|
associatedModels
|
associatedModels ( self )
associatedModels() -> list of Model
|
|
bbox
|
bbox ( self, lens )
bbox(lens: Lens = None) -> bool, BBox
|
|
newResidue
|
newResidue (
self,
t,
rid,
)
newResidue(t: str, rid: MolResId) -> Residue
newResidue(t: str, chain: str, pos: int, insert: str) -> Residue
|
|
incrHyds
|
incrHyds ( self )
incrHyds()
|
|
count
|
count ( self )
count() -> int
|
|
updateRibbonData
|
updateRibbonData ( self )
updateRibbonData()
|
|
pruneShortBonds
|
pruneShortBonds ( self )
pruneShortBonds()
|
|
traverseBonds
|
traverseBonds ( self, root )
traverseBonds(root: Root) -> list of Bond
|
|
rootForAtom
|
rootForAtom (
self,
a,
ignoreBreakPoints,
)
rootForAtom(a: Atom, ignoreBreakPoints: bool) -> Root
|
|
numHyds
|
numHyds ( self )
numHyds() -> int
|
|
minimumRings
|
minimumRings ( self, crossResidues )
minimumRings(crossResidues: bool = false) -> set of Ring
|
|
oslLevel
|
oslLevel ( self )
oslLevel() -> int
|
|
atomGroups
|
atomGroups ( self, numAtoms )
atomGroups(numAtoms: int) -> list of list of Atom
|
|
findBond
|
findBond ( self, i )
findBond(i: int) -> Bond
|
|
residueAfter
|
residueAfter ( self, r )
residueAfter(r: Residue) -> Residue
|
|
|