pyrophosphatase.
Catalysis of the hydrolysis of a phosphorus-oxygen-phosphorus bond in a
phosphoric anhydride substrate.
GO_ID = "GO:0016462" # pyrophosphatase activity
EC_NUMBER_PREFIX = "3.6.1.-"
SPECTATOR_LEFT_CHEBIS = {CHEBI_H2O, CHEBI_H_PLUS}
SPECTATOR_RIGHT_CHEBIS = {CHEBI_H_PLUS}
PHOSPHORIC_ANHYDRIDE_PATTERN = Chem.MolFromSmarts("[P][O][P]")
def check_membership_impl(self, reaction: Reaction) -> ClassificationResult:
"""Check for hydrolysis of a single phosphoric anhydride substrate."""
if reaction.is_transport_reaction():
return ClassificationResult(
is_member=False,
explanation="Transport reaction - not pyrophosphatase",
)
water_count = sum(
participant.count
for participant in reaction.left_participants
if participant.chebi_id == CHEBI_H2O
)
if water_count == 0:
return ClassificationResult(
is_member=False,
explanation="No water substrate - pyrophosphatases are hydrolases",
)
if water_count != 1:
return ClassificationResult(
is_member=False,
explanation="Pyrophosphatase chemistry hydrolyzes a single phosphoric anhydride bond with one water equivalent",
)
left_reactive = [
participant
for participant in reaction.left_participants
if participant.chebi_id not in self.SPECTATOR_LEFT_CHEBIS
]
right_reactive = [
participant
for participant in reaction.right_participants
if participant.chebi_id not in self.SPECTATOR_RIGHT_CHEBIS
]
if len(left_reactive) != 1:
return ClassificationResult(
is_member=False,
explanation="Pyrophosphatase chemistry should hydrolyze a single phosphoric anhydride substrate",
)
substrate = left_reactive[0]
substrate_p_count = self._atom_count(substrate, 15)
if substrate_p_count < 2 or not self._has_phosphoric_anhydride(substrate):
return ClassificationResult(
is_member=False,
explanation="Substrate lacks a phosphoric anhydride (P-O-P) bond",
)
if self._largest_anhydride_phosphorus_component_size(substrate) != substrate_p_count:
return ClassificationResult(
is_member=False,
explanation="Substrate contains disconnected phosphorus domains beyond a single anhydride chain",
)
phosphorus_products = [
participant
for participant in right_reactive
if self._atom_count(participant, 15) > 0
]
phosphorus_product_slots = sum(max(participant.count, 1) for participant in phosphorus_products)
if phosphorus_product_slots < 2:
return ClassificationResult(
is_member=False,
explanation="Hydrolysis does not yield multiple phosphorus-bearing products",
)
has_nonphosphorus_product = any(
self._atom_count(participant, 15) == 0 for participant in right_reactive
)
if has_nonphosphorus_product:
return ClassificationResult(
is_member=False,
explanation="Additional non-phosphorus products indicate chemistry beyond phosphoric anhydride hydrolysis",
)
if self._is_organophosphorus(substrate) and not any(
self._is_organophosphorus(participant) for participant in phosphorus_products
):
return ClassificationResult(
is_member=False,
explanation="Organic phosphorus substrate loses phosphate to an inorganic leaving group instead of phosphoric anhydride hydrolysis",
)
return ClassificationResult(
is_member=True,
explanation="Pyrophosphatase: hydrolytic cleavage of a phosphoric anhydride into multiple phosphorus-bearing products",
)