GROMACS Structure (.gro) Parser¶
Parses a GROMACS .gro file to extract residue electron counts and box volume.
- class kbkit.io.gro.GroParser(path: str | Path)[source]¶
Bases:
objectParse a single GROMACS .gro file to compute valence electron counts and box volume.
- Parameters:
gro_path (str) – Path to the .gro file.
- property residues: ResidueGroup¶
Residues in the .gro file.
- Type:
MDAnalysis.core.groups.ResidueGroup
- property atom_counts: dict[str, dict[str, int]]¶
Dictionary of residue names and their atom type counts.
- property electron_count: dict[str, int]¶
Dictionary of residue types and their total electron count.
- property box_volume: float¶
Compute box volume (nm^3) from the last line of a GROMACS .gro file.
- Type: