ProteinDeglycase

Definition

protein deglycase

Examples:
- N(6)-(1-hydroxy-2-oxopropyl)-L-lysyl-[protein] + H2O → L-lysyl-[protein] + lactate + H+
- S-(1-hydroxy-2-oxoethyl)-L-cysteinyl-[protein] + H2O → L-cysteinyl-[protein] + glycolate + H+

Performance Metrics

0.500
F1 Score
0.333
Precision
1.000
Recall
0.997
Accuracy
0.576
MCC
0.997
Specificity

Confusion Matrix

6
True Positives
12
False Positives
0
False Negatives
3466
True Negatives

Classification Code

protein_deglycase.py:36
Class-level declarative context used by the classifier, including identifiers, evidence requirements, and pattern definitions.
GO_ID = "GO:0036524"

    EC_NUMBER_PREFIX = "3.5.1.124"

    DEGLYCASE_PRODUCTS = {
        "CHEBI:24996",  # lactate
        "CHEBI:16891",  # L-lactate
        "CHEBI:29805",  # glycolate
        "CHEBI:17497",  # glycolic acid
    }

    MODIFICATION_PATTERNS = [
        "1-hydroxy-2-oxopropyl",  # methylglyoxal adduct
        "1-hydroxy-2-oxoethyl",    # glyoxal adduct
        "methylglyoxal",
        "glyoxal",
        "hemithioacetal",
        "hemiaminal",
    ]

    MODIFIED_AA_PATTERNS = [
        r"N\(omega\).*arginyl",   # Modified arginine
        r"N\(6\).*lysyl",         # Modified lysine  
        r"S-.*cysteinyl",         # Modified cysteine
        r"N\(\w+\)-.*\[protein\]",
        r"S-.*\[protein\]",
    ]

    PATTERNS: list[Reaction] = [
        # Modified protein + H2O → protein + lactate + H+
        var("modified_protein") + p(water)
        >> var("protein") + var("lactate") + h_plus,
        
        # Modified protein + H2O → lactate + protein + H+
        var("modified_protein") + p(water)
        >> var("lactate") + var("protein") + h_plus,
        
        # With glycolate instead of lactate
        var("modified_protein") + p(water)
        >> var("protein") + var("glycolate") + h_plus,
        
        # Sometimes without explicit H+
        var("modified_protein") + p(water)
        >> var("protein") + var("product"),
    ]
protein_deglycase.py:85
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 protein deglycase reaction.
        
        Strategy:
        1. Check for deglycase products (lactate/glycolate) first
        2. Look for modified protein substrates (methylglyoxal/glyoxal adducts)
        3. Check reaction label for deglycase patterns
        4. Verify water consumption
        5. Pattern matching
        """
        # Use RHEA label for pattern matching (not p.name which has ChEBI generic names)
        label_lower = reaction.label.lower() if reaction.label else ""
        label_parts = label_lower.split("=")
        substrate_str = label_parts[0] if label_parts else ""
        product_str = label_parts[1] if len(label_parts) > 1 else ""

        # First check for deglycase products (lactate or glycolate)
        has_deglycase_product = False
        product_name = None

        # Check by ChEBI ID first
        for participant in reaction.right_participants:
            if participant.chebi_id in self.DEGLYCASE_PRODUCTS:
                has_deglycase_product = True
                product_name = "lactate/glycolate"
                break

        # Fallback to label pattern
        if not has_deglycase_product:
            if "lactate" in product_str or "lactic" in product_str:
                has_deglycase_product = True
                product_name = "lactate"
            elif "glycolate" in product_str or "glycolic" in product_str:
                has_deglycase_product = True
                product_name = "glycolate"

        # If we have deglycase products, check for water and bypass parent validation
        if has_deglycase_product:
            # Check basic requirements: water consumption (ChEBI ID or SMILES)
            has_water = any(
                participant.chebi_id == CHEBI_H2O or participant.smiles == "O"
                for participant in reaction.left_participants
            ) or "h2o" in substrate_str or "water" in substrate_str

            if not has_water:
                return ClassificationResult(
                    is_member=False,
                    explanation="No water consumption for protein deglycase"
                )

            # If we have water and lactate/glycolate, this is deglycase
            explanation = "Protein deglycase: removes glycation modification"
            if product_name:
                explanation += f" → {product_name}"

            # Additional validation: check for H+ production (common in deglycase)
            has_proton = any(
                participant.chebi_id == CHEBI_H_PLUS
                for participant in reaction.right_participants
            ) or "h+" in product_str or "h(+)" in product_str

            if has_proton:
                explanation += " + H+"

            return ClassificationResult(is_member=True, explanation=explanation)
        
        # Otherwise check parent hydrolase requirements
        parent_result = super().check_membership_impl(reaction)
        if not parent_result.is_member:
            return ClassificationResult(
                is_member=False,
                explanation=f"Not a hydrolase: {parent_result.explanation}"
            )
        
        # Check for modified protein substrate (use label, not p.name)
        has_modified_protein = self._has_modified_protein_label(substrate_str)

        # Check for deglycase products via label (already checked ChEBI IDs above)
        if not has_deglycase_product:
            for participant in reaction.right_participants:
                if participant.chebi_id in self.DEGLYCASE_PRODUCTS:
                    has_deglycase_product = True
                    product_name = "lactate/glycolate"
                    break
            if not has_deglycase_product:
                if "lactate" in product_str or "lactic" in product_str:
                    has_deglycase_product = True
                    product_name = "lactate"
                elif "glycolate" in product_str or "glycolic" in product_str:
                    has_deglycase_product = True
                    product_name = "glycolate"

        # Check for protein in products (should be unmodified)
        has_protein_product = "[protein]" in product_str and not self._has_modified_protein_label(product_str)

        # Try pattern matching
        match = match_patterns(reaction, self.PATTERNS, strict=False)

        # Determine if this is deglycase activity
        if has_modified_protein and (has_deglycase_product or has_protein_product):
            explanation = "Protein deglycase: removes "

            # Identify modification type from label
            if "1-hydroxy-2-oxopropyl" in substrate_str:
                explanation += "methylglyoxal"
            elif "1-hydroxy-2-oxoethyl" in substrate_str:
                explanation += "glyoxal"
            else:
                explanation += "glycation"
            explanation += " modification from protein"

            if product_name:
                explanation += f" → {product_name}"

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

            return ClassificationResult(is_member=True, explanation=explanation)

        # Check for general glycation repair pattern (in label)
        glycation_terms = ["glycat", "amadori", "schiff", "maillard"]
        if any(term in substrate_str for term in glycation_terms):
            return ClassificationResult(
                is_member=True,
                explanation="Protein deglycase: glycation repair"
            )

        return ClassificationResult(
            is_member=False,
            explanation="Not a protein deglycase reaction"
        )

Detailed Results

▶ True Positives 6
RHEA:49548 [GO:0036524]: N(omega)-(1-hydroxy-2-oxopropyl)-L-arginyl-[protein] + H2O = lactate + L-arginyl-[protein] + H(+)
Protein deglycase: removes glycation modification → lactate/glycolate + H+
RHEA:57192 [GO:0036524]: N(6)-(1-hydroxy-2-oxoethyl)-L-lysyl-[protein] + H2O = glycolate + L-lysyl-[protein] + H(+)
Protein deglycase: removes glycation modification → lactate/glycolate + H+
RHEA:57196 [GO:0036524]: S-(1-hydroxy-2-oxoethyl)-L-cysteinyl-[protein] + H2O = glycolate + L-cysteinyl-[protein] + H(+)
Protein deglycase: removes glycation modification → lactate/glycolate + H+
RHEA:49556 [GO:0036524]: S-(1-hydroxy-2-oxopropyl)-L-cysteinyl-[protein] + H2O = lactate + L-cysteinyl-[protein] + H(+)
Protein deglycase: removes glycation modification → lactate/glycolate + H+
RHEA:49552 [GO:0036524]: N(6)-(1-hydroxy-2-oxopropyl)-L-lysyl-[protein] + H2O = lactate + L-lysyl-[protein] + H(+)
Protein deglycase: removes glycation modification → lactate/glycolate + H+
RHEA:57188 [GO:0036524]: N(omega)-(1-hydroxy-2-oxoethyl)-L-arginyl-[protein] + H2O = L-arginyl-[protein] + glycolate + H(+)
Protein deglycase: removes glycation modification → lactate/glycolate + H+
▶ False Positives 12
RHEA:11016 [GO:0036524]: allantoate + H2O = (S)-ureidoglycolate + urea
Protein deglycase: removes glycation modification → glycolate
RHEA:14277 [GO:0036524]: (S)-lactaldehyde + NAD(+) + H2O = (S)-lactate + NADH + 2 H(+)
Protein deglycase: removes glycation modification → lactate + H+
RHEA:14369 [GO:0036524]: 2-phosphoglycolate + H2O = glycolate + phosphate
Protein deglycase: removes glycation modification → lactate/glycolate
RHEA:14885 [GO:0036524]: N(omega)-(ADP-D-ribosyl)-L-arginyl-[protein] + H2O = ADP-D-ribose + L-arginyl-[protein]
Protein deglycase: removes glycation modification from protein [pattern matched]
RHEA:19233 [GO:0036524]: S-hexadecanoyl-L-cysteinyl-[protein] + H2O = L-cysteinyl-[protein] + hexadecanoate + H(+)
Protein deglycase: removes glycation modification from protein [pattern matched]
RHEA:20001 [GO:0036524]: glycolaldehyde + NAD(+) + H2O = glycolate + NADH + 2 H(+)
Protein deglycase: removes glycation modification → lactate/glycolate + H+
RHEA:20337 [GO:0036524]: (R)-2-O-sulfolactate + H2O = (R)-lactate + sulfate + H(+)
Protein deglycase: removes glycation modification → lactate + H+
RHEA:23416 [GO:0036524]: (2R)-O-phospho-3-sulfolactate + H2O = (2R)-3-sulfolactate + phosphate
Protein deglycase: removes glycation modification → lactate
RHEA:25241 [GO:0036524]: (S)-2-ureidoglycine + H2O = (S)-ureidoglycolate + NH4(+)
Protein deglycase: removes glycation modification → glycolate
RHEA:27754 [GO:0036524]: methylglyoxal + H2O = (R)-lactate + H(+)
Protein deglycase: removes glycation modification → lactate + H+
RHEA:47964 [GO:0036524]: N(pros)-phospho-L-histidyl-[protein] + H2O = L-histidyl-[protein] + phosphate
Protein deglycase: removes glycation modification from protein [pattern matched]
RHEA:47960 [GO:0036524]: N(tele)-phospho-L-histidyl-[protein] + H2O = L-histidyl-[protein] + phosphate
Protein deglycase: removes glycation modification from protein [pattern matched]
▶ True Negatives 3466
RHEA:10000 [GO:0036524]: pentanamide + H2O = pentanoate + NH4(+)
Not a protein deglycase reaction
RHEA:10008 [GO:0036524]: a hydroperoxide + [protein]-dithiol = [protein]-disulfide + an alcohol + H2O
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10012 [GO:0036524]: (R)-6-hydroxynicotine + O2 + H2O = 6-hydroxypseudooxynicotine + H2O2
Not a hydrolase: Pattern doesn't match expected hydrolysis transformation
RHEA:10016 [GO:0036524]: O-sinapoylcholine + H2O = (E)-sinapate + choline + H(+)
Not a protein deglycase reaction
RHEA:10020 [GO:0036524]: L-saccharopine + NADP(+) + H2O = (S)-2-amino-6-oxohexanoate + L-glutamate + NADPH + H(+)
Not a hydrolase: Pattern doesn't match expected hydrolysis transformation
RHEA:10024 [GO:0036524]: L-lysyl-[histone] + S-adenosyl-L-methionine = N(6)-methyl-L-lysyl-[histone] + S-adenosyl-L-homocysteine + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10028 [GO:0036524]: D-glutamate + O2 + H2O = H2O2 + 2-oxoglutarate + NH4(+)
Not a hydrolase: Pattern doesn't match expected hydrolysis transformation
RHEA:10032 [GO:0036524]: [protein]-C-terminal-L-glutamine + H2O = [protein]-C-terminal-L-glutamate + NH4(+)
Not a protein deglycase reaction
RHEA:10036 [GO:0036524]: 4-hydroxy-3-methoxy-benzenemethanol + O2 = vanillin + H2O2
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10040 [GO:0036524]: adenosine 3',5'-bisphosphate + H2O = AMP + phosphate
Not a protein deglycase reaction
RHEA:10044 [GO:0036524]: cyclohexanol + NAD(+) = cyclohexanone + NADH + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10048 [GO:0036524]: O-acetyl-L-homoserine + methanethiol = L-methionine + acetate + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10052 [GO:0036524]: (2R)-hydroxy-4-methylpentanoate + NAD(+) = 4-methyl-2-oxopentanoate + NADH + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10056 [GO:0036524]: (3S)-3-aminobutanoyl-CoA = (2E)-butenoyl-CoA + NH4(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10060 [GO:0036524]: D-tryptophan + acetyl-CoA = N-acetyl-D-tryptophan + CoA + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10064 [GO:0036524]: (6R)-5,10-methylene-5,6,7,8-tetrahydrofolate + D-alanine + H2O = 2-methylserine + (6S)-5,6,7,8-tetrahydrofolate
Not a hydrolase: Pattern doesn't match expected hydrolysis transformation
RHEA:10072 [GO:0036524]: N,N-dimethylglycine + S-adenosyl-L-methionine = glycine betaine + S-adenosyl-L-homocysteine + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10076 [GO:0036524]: lactose + H2O = beta-D-galactose + D-glucose
Not a protein deglycase reaction
RHEA:10080 [GO:0036524]: dihydrophloroglucinol + NADP(+) = 1,3,5-trihydroxybenzene + NADPH
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10084 [GO:0036524]: 3,4-dihydroxybenzoate + O2 = 3-carboxy-cis,cis-muconate + 2 H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10088 [GO:0036524]: sucrose + UDP-alpha-D-galactose = 6(F)-alpha-D-galactosylsucrose + UDP + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10092 [GO:0036524]: a 2'-deoxyribonucleoside 3'-phosphate + H2O = a 2'-deoxyribonucleoside + phosphate
Not a protein deglycase reaction
RHEA:10104 [GO:0036524]: gibberellin A20 + 2-oxoglutarate + O2 = gibberellin A1 + succinate + CO2
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10108 [GO:0036524]: (7S)-salutaridinol + NADP(+) = salutaridine + NADPH + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10112 [GO:0036524]: L-homocysteine + L-serine = L,L-cystathionine + H2O
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10116 [GO:0036524]: 6-phospho-D-gluconate + NADP(+) = D-ribulose 5-phosphate + CO2 + NADPH
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10124 [GO:0036524]: phenylacetone + NADPH + O2 + H(+) = benzyl acetate + NADP(+) + H2O
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10128 [GO:0036524]: all-trans-violaxanthin = all-trans-neoxanthin
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10132 [GO:0036524]: benzoate + ATP + CoA = benzoyl-CoA + AMP + diphosphate
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10136 [GO:0036524]: 2 glyoxylate + H(+) = 2-hydroxy-3-oxopropanoate + CO2
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10140 [GO:0036524]: prostaglandin F2alpha + NADP(+) = prostaglandin D2 + NADPH + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10148 [GO:0036524]: blasticidin S + H2O + H(+) = deaminohydroxyblasticidin S + NH4(+)
Not a hydrolase: Pattern doesn't match expected hydrolysis transformation
RHEA:10152 [GO:0036524]: hydrogencarbonate + NH4(+) + ATP = carbamoyl phosphate + ADP + H2O + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10156 [GO:0036524]: dihydrochelirubine + reduced [NADPH--hemoprotein reductase] + O2 = 12-hydroxydihydrochelirubine + oxidized [NADPH--hemoprotein reductase] + H2O + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10160 [GO:0036524]: L-iditol + NAD(+) = keto-L-sorbose + NADH + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10164 [GO:0036524]: (2R)-2-phosphoglycerate = phosphoenolpyruvate + H2O
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10168 [GO:0036524]: 15,16-dihydrobiliverdin + oxidized 2[4Fe-4S]-[ferredoxin] = biliverdin IXalpha + reduced 2[4Fe-4S]-[ferredoxin] + 2 H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10172 [GO:0036524]: (3R)-hydroxybutanoate dimer + H2O = 2 (R)-3-hydroxybutanoate + H(+)
Not a protein deglycase reaction
RHEA:10180 [GO:0036524]: (6R)-10-formyltetrahydrofolate + NADP(+) + H2O = (6S)-5,6,7,8-tetrahydrofolate + CO2 + NADPH + H(+)
Not a hydrolase: Pattern doesn't match expected hydrolysis transformation
RHEA:10184 [GO:0036524]: (4,5-dihydro-5-oxofuran-2-yl)-acetate + H2O = 3-oxoadipate + H(+)
Not a protein deglycase reaction
RHEA:10188 [GO:0036524]: acetoacetyl-CoA + acetyl-CoA + H2O = (3S)-3-hydroxy-3-methylglutaryl-CoA + CoA + H(+)
Not a hydrolase: Pattern doesn't match expected hydrolysis transformation
RHEA:10192 [GO:0036524]: sulfate(out) + ATP + H2O = sulfate(in) + ADP + phosphate + H(+)
Not a hydrolase: Pattern doesn't match expected hydrolysis transformation
RHEA:10196 [GO:0036524]: (1R,6R)-6-hydroxy-2-succinyl-cyclohexa-2,4-diene-1-carboxylate = 2-succinylbenzoate + H2O
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10200 [GO:0036524]: butanoate + NAD(+) = (2E)-2-butenoate + NADH + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10204 [GO:0036524]: dimethylamine + oxidized [electron-transfer flavoprotein] + H2O + H(+) = methylamine + reduced [electron-transfer flavoprotein] + formaldehyde
Not a hydrolase: Pattern doesn't match expected hydrolysis transformation
RHEA:10208 [GO:0036524]: an N-terminal L-alpha-aminoacyl-[protein] + L-arginyl-tRNA(Arg) = an N-terminal L-arginyl-L-aminoacyl-[protein] + tRNA(Arg) + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10212 [GO:0036524]: 5-aminopentanoate + 2-oxoglutarate = 5-oxopentanoate + L-glutamate
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10216 [GO:0036524]: [DNA-directed RNA polymerase] + ATP = phospho-[DNA-directed RNA polymerase] + ADP + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10220 [GO:0036524]: tRNA(Tyr) + L-tyrosine + ATP = L-tyrosyl-tRNA(Tyr) + AMP + diphosphate + H(+)
Not a hydrolase: No water reactant - not hydrolysis
RHEA:10224 [GO:0036524]: pyridoxal + ATP = pyridoxal 5'-phosphate + ADP + H(+)
Not a hydrolase: No water reactant - not hydrolysis
... and 3416 more (showing 50 of 3466)

Positives Without Direct GO Support

Positive rule matches on reactions without direct GO support for this class. These matches are partitioned into truly unannotated candidates, EC-backed reactions already consistent with this class, and EC-backed reactions that conflict with this class.
▶ EC-backed, GO-missing positives conflicting with this class 5
These reactions lack direct GO support for this class and already carry a different EC assignment. They are useful false-positive review candidates.
RHEA:25189: chloroacetate + H2O = glycolate + chloride + H(+)
EC annotation: EC:3.8.1.3
Protein deglycase: removes glycation modification → lactate/glycolate + H+
RHEA:25245: (R)-S-lactoylglutathione + H2O = (R)-lactate + glutathione + H(+)
EC annotation: EC:3.1.2.6
Protein deglycase: removes glycation modification → lactate + H+
RHEA:26410: N-acetyl-D-muramate 6-phosphate + H2O = N-acetyl-D-glucosamine 6-phosphate + (R)-lactate
EC annotation: EC:4.2.1.126
Protein deglycase: removes glycation modification → lactate
RHEA:28074: (2R)-3-sulfopropanediol + 2 NAD(+) + H2O = (2R)-3-sulfolactate + 2 NADH + 3 H(+)
EC annotation: EC:1.1.1.308
Protein deglycase: removes glycation modification → lactate + H+
RHEA:30051: fluoroacetate + H2O = fluoride + glycolate + H(+)
EC annotation: EC:3.8.1.3
Protein deglycase: removes glycation modification → lactate/glycolate + H+