ProteinMotion
Reference navigation
On this page

FUNCTION · v0.9.1

charges_from_pqr

Match PQR charges to the protein’s atom identities.

python
from proteinmotion import charges_from_pqr

Signature

python
charges_from_pqr(protein, path, *, allow_extra=False)

Parameters

ParameterDefaultDescription
proteinRequiredProtein object to read or animate.
pathRequiredInput or output file path, as specified by the operation.
allow_extrakeyword onlyFalsePermit additional PQR records after every protein atom has an exact match.

Returns: Float array with one charge per protein atom, in elementary charge units.

Notes

Matching uses exact chain, residue number, insertion code, residue name, and atom name. Missing or duplicate records raise ValueError. allow_extra=True permits unmatched PQR atoms after every protein atom has a charge.