molecool_test.io.pdb¶
Functions for manipulating pdb files.
Module Contents¶
Functions¶
|
Open and read coordinates and atom symbols from a pdb file. |
- molecool_test.io.pdb.open_pdb(file_location)[source]¶
Open and read coordinates and atom symbols from a pdb file.
The pdb file must specify the atom elements in the last column, and follow the conventions outlined in the PDB format specification.
- Parameters
file_location (str) – The location of the pdb file to read in.
- Returns
coords (np.ndarray) – The coordinates of the pdb file.
symbols (list) – The atomic symbols of the pdb file.