|
IMP Reference Guide
develop.169ea894ba,2025/11/01
The Integrative Modeling Platform
|
Stores a list of Molecules all with the same State index. More...
Inherits _SystemBase.
Stores a list of Molecules all with the same State index.
Also stores number of copies of each Molecule for easy selection.
Definition at line 219 of file pmi/topology/__init__.py.
Public Member Functions | |
| def | __init__ |
| Define a new state. More... | |
| def | build |
| Build all molecules (automatically makes clones) More... | |
| def | create_molecule |
| Create a new Molecule within this State. More... | |
| def | get_hierarchy |
| Get the IMP.atom.Hierarchy node for this state. More... | |
| def | get_molecule |
| Access a molecule by name and copy number. More... | |
| def | get_molecules |
| Return a dictionary where key is molecule name and value is a list of all copies of that molecule in setup order. More... | |
| def | get_number_of_copies |
| Get the number of copies of the given molecule (by name) More... | |
| def IMP.pmi.topology.State.__init__ | ( | self, | |
| system, | |||
| state_index | |||
| ) |
Define a new state.
| system | the PMI System |
| state_index | the index of the new state |
Definition at line 225 of file pmi/topology/__init__.py.
| def IMP.pmi.topology.State.build | ( | self, | |
| kwargs | |||
| ) |
Build all molecules (automatically makes clones)
Definition at line 315 of file pmi/topology/__init__.py.
| def IMP.pmi.topology.State.create_molecule | ( | self, | |
| name, | |||
sequence = '', |
|||
chain_id = '', |
|||
alphabet = IMP.pmi.alphabets.amino_acid, |
|||
uniprot = None |
|||
| ) |
Create a new Molecule within this State.
| name | the name of the molecule (string); it must not be already used |
| sequence | sequence (string) |
| chain_id | Chain ID to assign to this molecule |
| alphabet | Mapping from FASTA codes to residue types |
| uniprot | UniProt accession, if available |
Definition at line 270 of file pmi/topology/__init__.py.
| def IMP.pmi.topology.State.get_hierarchy | ( | self | ) |
Get the IMP.atom.Hierarchy node for this state.
Definition at line 300 of file pmi/topology/__init__.py.
| def IMP.pmi.topology.State.get_molecule | ( | self, | |
| name, | |||
copy_num = 0 |
|||
| ) |
Access a molecule by name and copy number.
| name | The molecule name used during setup |
| copy_num | The copy number based on input order. Default: 0. Set to 'all' to get all copies |
Definition at line 258 of file pmi/topology/__init__.py.
| def IMP.pmi.topology.State.get_molecules | ( | self | ) |
Return a dictionary where key is molecule name and value is a list of all copies of that molecule in setup order.
Definition at line 252 of file pmi/topology/__init__.py.
| def IMP.pmi.topology.State.get_number_of_copies | ( | self, | |
| molname | |||
| ) |
Get the number of copies of the given molecule (by name)
| molname | The name of the molecule |
Definition at line 305 of file pmi/topology/__init__.py.