parmed.charmm.CharmmCrdFile¶
-
class
parmed.charmm.
CharmmCrdFile
(fname)[source]¶ Reads and parses a CHARMM coordinate file (.crd) into its components, namely the coordinates, CHARMM atom types, resid, resname, etc.
- Parameters
- fnamestr
Name of the restart file to parse
- Attributes
- natomint
Number of atoms in the system
- resnamelist of str
List of all residue names in the system
- coordinatesnp.ndarray with shape (1, natom, 3)
Atomic coordinates in a numpy array
positions
natom x 3 distance QuantityAtomic coordinates with units attached to them with the shape (natom, 3)
Methods
id_format
(filename)Identifies the file type as a CHARMM coordinate file
write
(struct, dest)Writes a CHARMM coordinate file from a structure
Methods
__init__
(fname)Initialize self.
id_format
(filename)Identifies the file type as a CHARMM coordinate file
write
(struct, dest)Writes a CHARMM coordinate file from a structure
Attributes
Atomic coordinates with units attached to them with the shape (natom, 3)