meld.system.amber.ParmTopReader
- class meld.system.amber.ParmTopReader(top_string)[source]
Bases:
objectRead in information from parmtop file
- __init__(top_string)[source]
Initialize ParmTopReader
- Parameters
top_string (
str) – topology string from tleap
Methods
__init__(top_string)Initialize ParmTopReader
Get the atom map
Get the atom names
Get the bonded atoms from topology
Get the residue names
Get the residue numbers
- get_atom_map()[source]
Get the atom map
- Return type
Dict[Tuple[int,str],int]- Returns
the mapping from (resid, atom_name) to atom_index
Note
both resid and atom_index are zero-based
- get_bonds()[source]
Get the bonded atoms from topology
- Return type
Set[Tuple[int,int]]- Returns
The set of bonds from the topology
Note
the indices are zero-based