IntramolecularPhosphotransferase

Definition

intramolecular phosphotransferase

Examples:
- Phosphoglucomutase: glucose-1-P ⇌ glucose-6-P
- Phosphoglycerate mutase: 3-phosphoglycerate ⇌ 2-phosphoglycerate
- Methylmalonyl-CoA mutase: methylmalonyl-CoA → succinyl-CoA
- Chorismate mutase: chorismate → prephenate

Performance Metrics

1.000
F1 Score
1.000
Precision
1.000
Recall
1.000
Accuracy
1.000
MCC
1.000
Specificity

Confusion Matrix

11
True Positives
0
False Positives
0
False Negatives
3473
True Negatives

Classification Code

intramolecular_phosphotransferase.py:38
Class-level declarative context used by the classifier, including identifiers, evidence requirements, and pattern definitions.
GO_ID = "GO:0016868"  # intramolecular transferase activity

    EC_NUMBER_PREFIX = "5.4.-.-"  # Intramolecular transferases (mutases)

    PATTERNS: list[Reaction] = [
        # Simple rearrangement: substrate → rearranged substrate
        var("substrate") >> var("rearranged_product") + optional(h_plus),
        # Phosphate group migration: phospho-substrate → different-phospho-substrate
        var("phospho_substrate") >> var("rearranged_phospho_product"),
        # CoA derivative rearrangement: CoA-substrate → rearranged-CoA-product
        var("coa_substrate") >> var("rearranged_coa_product") + optional(h_plus),
    ]

    PHOSPHATE_POSITION_RE = re.compile(r"(\d+)-phosph(?:ate|o)")

    TOKEN_RE = re.compile(r"[a-z]{4,}")

    STOP_TOKENS = {
        "alpha",
        "beta",
        "phosphate",
        "phospho",
        "phosphono",
        "compound",
        "acid",
        "cis",
        "trans",
    }
intramolecular_phosphotransferase.py:64
Imperative membership logic. This often calls the declarative class attributes shown above.
    def check_membership_impl(self, reaction: Reaction) -> ClassificationResult:
        """Check if reaction is a mutase using pattern matching.

        Strategy:
        1. Exclude obvious non-isomerase chemistry (redox/ATP/CoA)
        2. Ignore balancing protons/water for stoichiometry checks
        3. Require phosphorylated substrates/products
        4. Prefer clear phosphate-position migration patterns
        """
        participants = reaction.left_participants + reaction.right_participants

        has_redox = any(
            p.chebi_id in {
                CHEBI_NAD_PLUS,
                CHEBI_NADH,
                CHEBI_NADP_PLUS,
                CHEBI_NADPH,
                CHEBI_FAD,
                CHEBI_FADH2,
                CHEBI_O2,
            }
            for p in participants
        )
        if has_redox:
            return ClassificationResult(
                is_member=False,
                explanation="Redox cofactors present - not intramolecular phosphotransferase",
            )

        has_energy_or_carrier = any(
            p.chebi_id in {CHEBI_ATP, CHEBI_COA}
            for p in participants
        )
        if has_energy_or_carrier:
            return ClassificationResult(
                is_member=False,
                explanation="ATP/CoA involvement - likely transferase, not mutase",
            )

        has_water = any(p.chebi_id == CHEBI_H2O for p in participants)
        if has_water:
            return ClassificationResult(
                is_member=False,
                explanation="Water involvement - hydration/hydrolysis rather than phosphotransfer mutase",
            )

        left_core = [
            p for p in reaction.left_participants
            if p.chebi_id not in {CHEBI_H_PLUS, CHEBI_H2O}
        ]
        right_core = [
            p for p in reaction.right_participants
            if p.chebi_id not in {CHEBI_H_PLUS, CHEBI_H2O}
        ]

        if not left_core or not right_core:
            return ClassificationResult(
                is_member=False,
                explanation="No core substrates/products after removing H+/H2O",
            )

        if len(left_core) != len(right_core) or len(left_core) > 2:
            return ClassificationResult(
                is_member=False,
                explanation="Not an intramolecular phosphotransfer stoichiometry pattern",
            )

        label = reaction.label.lower() if reaction.label else ""
        label_parts = label.split("=") if label else []
        left_label = label_parts[0] if label_parts else ""
        right_label = label_parts[1] if len(label_parts) > 1 else ""

        left_has_phosphoryl = any(p.is_phosphorylated() for p in left_core) or "phosph" in left_label
        right_has_phosphoryl = any(p.is_phosphorylated() for p in right_core) or "phosph" in right_label

        if not (left_has_phosphoryl and right_has_phosphoryl):
            return ClassificationResult(
                is_member=False,
                explanation="No phosphoryl group on both sides - not phosphotransfer mutase",
            )

        left_text = left_label
        right_text = right_label
        if not self._has_shared_core_token(left_text, right_text):
            return ClassificationResult(
                is_member=False,
                explanation="Substrate/product cores differ (no shared scaffold token)",
            )

        left_positions = set(self.PHOSPHATE_POSITION_RE.findall(left_label))
        right_positions = set(self.PHOSPHATE_POSITION_RE.findall(right_label))
        has_position_shift = bool(left_positions and right_positions and left_positions != right_positions)
        has_special_mutase_signature = (
            ("phosphoenolpyruvate" in label and "phosphonopyruvate" in label)
            or ("glyceroyl phosphate" in label and "bisphosphoglycerate" in label)
        )

        is_stereochemical_split = (
            len(left_core) == 2
            and len(right_core) == 2
            and len({p.chebi_id for p in left_core}) == 1
            and len({p.chebi_id for p in right_core}) >= 1
        )

        if len(left_core) == 1 and not (has_position_shift or has_special_mutase_signature):
            return ClassificationResult(
                is_member=False,
                explanation="No phosphate-position transfer signature for single-substrate mutase",
            )

        if len(left_core) == 2 and not (is_stereochemical_split and ("heptose" in label or has_position_shift)):
            return ClassificationResult(
                is_member=False,
                explanation="No intramolecular phosphotransfer pattern detected",
            )

        # Try to match patterns
        match = match_patterns(reaction, self.PATTERNS, strict=False)

        explanation = "Mutase: intramolecular phosphotransfer"
        if has_position_shift:
            explanation += " (phosphate-position migration)"
        elif is_stereochemical_split:
            explanation += " (phosphorylated stereochemical split)"
        elif has_special_mutase_signature:
            explanation += " (known phosphomutase signature)"
        else:
            explanation += " (phosphorylated intramolecular rearrangement)"

        if match.matched:
            explanation += " [pattern matched]"

        return ClassificationResult(is_member=True, explanation=explanation)

Detailed Results

▶ True Positives 11
RHEA:11140 [GO:0016868]: alpha-D-mannose 1-phosphate = D-mannose 6-phosphate
Mutase: intramolecular phosphotransfer (phosphate-position migration) [pattern matched]
RHEA:15901 [GO:0016868]: (2R)-2-phosphoglycerate = (2R)-3-phosphoglycerate
Mutase: intramolecular phosphotransfer (phosphate-position migration) [pattern matched]
RHEA:17013 [GO:0016868]: phosphoenolpyruvate + H(+) = 3-phosphonopyruvate
Mutase: intramolecular phosphotransfer (known phosphomutase signature) [pattern matched]
RHEA:17765 [GO:0016868]: (2R)-3-phospho-glyceroyl phosphate = (2R)-2,3-bisphosphoglycerate + H(+)
Mutase: intramolecular phosphotransfer (known phosphomutase signature) [pattern matched]
RHEA:18793 [GO:0016868]: alpha-D-ribose 1-phosphate = D-ribose 5-phosphate
Mutase: intramolecular phosphotransfer (phosphate-position migration) [pattern matched]
RHEA:20113 [GO:0016868]: beta-D-glucose 1-phosphate = beta-D-glucose 6-phosphate
Mutase: intramolecular phosphotransfer (phosphate-position migration) [pattern matched]
RHEA:23424 [GO:0016868]: alpha-D-glucosamine 1-phosphate = D-glucosamine 6-phosphate
Mutase: intramolecular phosphotransfer (phosphate-position migration) [pattern matched]
RHEA:23536 [GO:0016868]: alpha-D-glucose 1-phosphate = alpha-D-glucose 6-phosphate
Mutase: intramolecular phosphotransfer (phosphate-position migration) [pattern matched]
RHEA:23804 [GO:0016868]: N-acetyl-alpha-D-glucosamine 1-phosphate = N-acetyl-D-glucosamine 6-phosphate
Mutase: intramolecular phosphotransfer (phosphate-position migration) [pattern matched]
RHEA:27489 [GO:0016868]: 2 D-sedoheptulose 7-phosphate = D-glycero-alpha-D-manno-heptose 7-phosphate + D-glycero-beta-D-manno-heptose 7-phosphate
Mutase: intramolecular phosphotransfer (phosphorylated stereochemical split) [pattern matched]
RHEA:27658 [GO:0016868]: 2-deoxy-alpha-D-ribose 1-phosphate = 2-deoxy-D-ribose 5-phosphate
Mutase: intramolecular phosphotransfer (phosphate-position migration) [pattern matched]
▶ True Negatives 3473
RHEA:10000 [GO:0016868]: pentanamide + H2O = pentanoate + NH4(+)
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10008 [GO:0016868]: a hydroperoxide + [protein]-dithiol = [protein]-disulfide + an alcohol + H2O
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10012 [GO:0016868]: (R)-6-hydroxynicotine + O2 + H2O = 6-hydroxypseudooxynicotine + H2O2
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10016 [GO:0016868]: O-sinapoylcholine + H2O = (E)-sinapate + choline + H(+)
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10020 [GO:0016868]: L-saccharopine + NADP(+) + H2O = (S)-2-amino-6-oxohexanoate + L-glutamate + NADPH + H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10024 [GO:0016868]: L-lysyl-[histone] + S-adenosyl-L-methionine = N(6)-methyl-L-lysyl-[histone] + S-adenosyl-L-homocysteine + H(+)
No phosphoryl group on both sides - not phosphotransfer mutase
RHEA:10028 [GO:0016868]: D-glutamate + O2 + H2O = H2O2 + 2-oxoglutarate + NH4(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10032 [GO:0016868]: [protein]-C-terminal-L-glutamine + H2O = [protein]-C-terminal-L-glutamate + NH4(+)
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10036 [GO:0016868]: 4-hydroxy-3-methoxy-benzenemethanol + O2 = vanillin + H2O2
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10040 [GO:0016868]: adenosine 3',5'-bisphosphate + H2O = AMP + phosphate
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10044 [GO:0016868]: cyclohexanol + NAD(+) = cyclohexanone + NADH + H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10048 [GO:0016868]: O-acetyl-L-homoserine + methanethiol = L-methionine + acetate + H(+)
No phosphoryl group on both sides - not phosphotransfer mutase
RHEA:10052 [GO:0016868]: (2R)-hydroxy-4-methylpentanoate + NAD(+) = 4-methyl-2-oxopentanoate + NADH + H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10056 [GO:0016868]: (3S)-3-aminobutanoyl-CoA = (2E)-butenoyl-CoA + NH4(+)
Not an intramolecular phosphotransfer stoichiometry pattern
RHEA:10060 [GO:0016868]: D-tryptophan + acetyl-CoA = N-acetyl-D-tryptophan + CoA + H(+)
ATP/CoA involvement - likely transferase, not mutase
RHEA:10064 [GO:0016868]: (6R)-5,10-methylene-5,6,7,8-tetrahydrofolate + D-alanine + H2O = 2-methylserine + (6S)-5,6,7,8-tetrahydrofolate
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10072 [GO:0016868]: N,N-dimethylglycine + S-adenosyl-L-methionine = glycine betaine + S-adenosyl-L-homocysteine + H(+)
No phosphoryl group on both sides - not phosphotransfer mutase
RHEA:10076 [GO:0016868]: lactose + H2O = beta-D-galactose + D-glucose
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10080 [GO:0016868]: dihydrophloroglucinol + NADP(+) = 1,3,5-trihydroxybenzene + NADPH
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10084 [GO:0016868]: 3,4-dihydroxybenzoate + O2 = 3-carboxy-cis,cis-muconate + 2 H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10088 [GO:0016868]: sucrose + UDP-alpha-D-galactose = 6(F)-alpha-D-galactosylsucrose + UDP + H(+)
No phosphoryl group on both sides - not phosphotransfer mutase
RHEA:10092 [GO:0016868]: a 2'-deoxyribonucleoside 3'-phosphate + H2O = a 2'-deoxyribonucleoside + phosphate
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10104 [GO:0016868]: gibberellin A20 + 2-oxoglutarate + O2 = gibberellin A1 + succinate + CO2
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10108 [GO:0016868]: (7S)-salutaridinol + NADP(+) = salutaridine + NADPH + H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10112 [GO:0016868]: L-homocysteine + L-serine = L,L-cystathionine + H2O
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10116 [GO:0016868]: 6-phospho-D-gluconate + NADP(+) = D-ribulose 5-phosphate + CO2 + NADPH
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10124 [GO:0016868]: phenylacetone + NADPH + O2 + H(+) = benzyl acetate + NADP(+) + H2O
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10128 [GO:0016868]: all-trans-violaxanthin = all-trans-neoxanthin
No phosphoryl group on both sides - not phosphotransfer mutase
RHEA:10132 [GO:0016868]: benzoate + ATP + CoA = benzoyl-CoA + AMP + diphosphate
ATP/CoA involvement - likely transferase, not mutase
RHEA:10136 [GO:0016868]: 2 glyoxylate + H(+) = 2-hydroxy-3-oxopropanoate + CO2
No phosphoryl group on both sides - not phosphotransfer mutase
RHEA:10140 [GO:0016868]: prostaglandin F2alpha + NADP(+) = prostaglandin D2 + NADPH + H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10148 [GO:0016868]: blasticidin S + H2O + H(+) = deaminohydroxyblasticidin S + NH4(+)
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10152 [GO:0016868]: hydrogencarbonate + NH4(+) + ATP = carbamoyl phosphate + ADP + H2O + H(+)
ATP/CoA involvement - likely transferase, not mutase
RHEA:10156 [GO:0016868]: dihydrochelirubine + reduced [NADPH--hemoprotein reductase] + O2 = 12-hydroxydihydrochelirubine + oxidized [NADPH--hemoprotein reductase] + H2O + H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10160 [GO:0016868]: L-iditol + NAD(+) = keto-L-sorbose + NADH + H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10164 [GO:0016868]: (2R)-2-phosphoglycerate = phosphoenolpyruvate + H2O
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10168 [GO:0016868]: 15,16-dihydrobiliverdin + oxidized 2[4Fe-4S]-[ferredoxin] = biliverdin IXalpha + reduced 2[4Fe-4S]-[ferredoxin] + 2 H(+)
Not an intramolecular phosphotransfer stoichiometry pattern
RHEA:10172 [GO:0016868]: (3R)-hydroxybutanoate dimer + H2O = 2 (R)-3-hydroxybutanoate + H(+)
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10180 [GO:0016868]: (6R)-10-formyltetrahydrofolate + NADP(+) + H2O = (6S)-5,6,7,8-tetrahydrofolate + CO2 + NADPH + H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10184 [GO:0016868]: (4,5-dihydro-5-oxofuran-2-yl)-acetate + H2O = 3-oxoadipate + H(+)
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10188 [GO:0016868]: acetoacetyl-CoA + acetyl-CoA + H2O = (3S)-3-hydroxy-3-methylglutaryl-CoA + CoA + H(+)
ATP/CoA involvement - likely transferase, not mutase
RHEA:10192 [GO:0016868]: sulfate(out) + ATP + H2O = sulfate(in) + ADP + phosphate + H(+)
ATP/CoA involvement - likely transferase, not mutase
RHEA:10196 [GO:0016868]: (1R,6R)-6-hydroxy-2-succinyl-cyclohexa-2,4-diene-1-carboxylate = 2-succinylbenzoate + H2O
Water involvement - hydration/hydrolysis rather than phosphotransfer mutase
RHEA:10200 [GO:0016868]: butanoate + NAD(+) = (2E)-2-butenoate + NADH + H(+)
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10204 [GO:0016868]: dimethylamine + oxidized [electron-transfer flavoprotein] + H2O + H(+) = methylamine + reduced [electron-transfer flavoprotein] + formaldehyde
Redox cofactors present - not intramolecular phosphotransferase
RHEA:10208 [GO:0016868]: an N-terminal L-alpha-aminoacyl-[protein] + L-arginyl-tRNA(Arg) = an N-terminal L-arginyl-L-aminoacyl-[protein] + tRNA(Arg) + H(+)
No phosphoryl group on both sides - not phosphotransfer mutase
RHEA:10212 [GO:0016868]: 5-aminopentanoate + 2-oxoglutarate = 5-oxopentanoate + L-glutamate
No phosphoryl group on both sides - not phosphotransfer mutase
RHEA:10216 [GO:0016868]: [DNA-directed RNA polymerase] + ATP = phospho-[DNA-directed RNA polymerase] + ADP + H(+)
ATP/CoA involvement - likely transferase, not mutase
RHEA:10220 [GO:0016868]: tRNA(Tyr) + L-tyrosine + ATP = L-tyrosyl-tRNA(Tyr) + AMP + diphosphate + H(+)
ATP/CoA involvement - likely transferase, not mutase
RHEA:10224 [GO:0016868]: pyridoxal + ATP = pyridoxal 5'-phosphate + ADP + H(+)
ATP/CoA involvement - likely transferase, not mutase
... and 3423 more (showing 50 of 3473)