PSF File¶
This module defines a function for parsing protein structure files in PSF format.
-
parsePSF
(filename, title=None, ag=None)[source]¶ Returns an
AtomGroup
instance storing data parsed from X-PLOR format PSF file filename. Atom and bond information is parsed from the file. If title is not given, filename will be set as the title of theAtomGroup
instance. AnAtomGroup
instance may be provided as ag argument. When provided, ag must have the same number of atoms in the same order as the file. Data from PSF file will be added to the ag. This may overwrite present data if it overlaps with PSF file content.This function now includes the angles, dihedrals, and impropers sections as well as donors, acceptors and crossterms!