HydrolaseActingOnSulfurNitrogenBonds

Definition

hydrolase acting on sulfur-nitrogen bonds.

Catalysis of the hydrolysis of acid sulfur-nitrogen bonds.

Performance Metrics

0.667
F1 Score
0.500
Precision
1.000
Recall
0.999
Accuracy
0.707
MCC
0.999
Specificity

Confusion Matrix

2
True Positives
2
False Positives
0
False Negatives
3480
True Negatives

Classification Code

hydrolase_acting_on_sulfur_nitrogen_bonds.py:11
Imperative membership logic. This often calls the declarative class attributes shown above.
    def check_membership_impl(self, reaction: Reaction) -> ClassificationResult:
        """Check if a reaction is hydrolysis of S-N bonds using pattern matching.

        Strategy:
        1. Check for known S-N compounds by ChEBI ID
        2. Check compound names for S-N patterns  
        3. Exclude O-S bond reactions (sulfate esters)
        4. Basic hydrolase requirements (water consumption)
        5. Verify fragmentation pattern
        """
        # First check if it's even a hydrolase
        parent_result = super().check_membership_impl(reaction)
        if not parent_result.is_member:
            return ClassificationResult(
                is_member=False,
                explanation=f"Not a hydrolase reaction: {parent_result.explanation}",
            )
        
        # Check for known S-N bond compounds by ChEBI ID FIRST
        has_sn_compound = False
        sn_compound_name = None

        for participant in reaction.left_participants:
            if participant.chebi_id in self.SN_BOND_COMPOUNDS:
                has_sn_compound = True
                sn_compound_name = participant.name or participant.chebi_id
                break

        # Check by SMARTS-based sulfamate detection (structural)
        # But only if S-N bond is actually broken (not preserved in products)
        if not has_sn_compound:
            for participant in reaction.left_participants:
                if participant.is_sulfamate():
                    # Check if S-N bond is preserved in any product
                    # If a product also has sulfamate, it's O-S hydrolysis not S-N
                    sn_preserved_in_products = any(
                        prod.is_sulfamate() for prod in reaction.right_participants
                    )
                    if not sn_preserved_in_products:
                        has_sn_compound = True
                        sn_compound_name = participant.name or participant.chebi_id or "sulfamate (SMARTS)"
                        break

        # Check by name patterns as fallback (for molecules without SMILES)
        if not has_sn_compound:
            import re
            for participant in reaction.left_participants:
                if participant.name:
                    name_lower = participant.name.lower()
                    # Check for S-N bond patterns
                    for pattern in self.SN_NAME_PATTERNS:
                        if re.search(pattern, name_lower):
                            has_sn_compound = True
                            sn_compound_name = participant.name
                            break

                    if has_sn_compound:
                        break
        
        # Initialize variable that will be used later
        has_sulfate_product = False
        
        # If we have clear S-N compound, that's strong evidence
        if has_sn_compound:
            # Check for products that suggest S-N hydrolysis (sulfate)
            has_sulfate_product = any(
                participant.chebi_id == "CHEBI:16189" or 
                (participant.name and "sulfate" in participant.name.lower())
                for participant in reaction.right_participants
            )

        # Check for O-S patterns (sulfate ester) - these are NOT S-N bonds
        # Must check BEFORE fallback inference to avoid false positives
        import re
        has_os_pattern = False
        for participant in reaction.left_participants:
            if participant.name:
                name_lower = participant.name.lower()
                # Check if it matches O-S patterns (sulfate ester)
                for pattern in self.OS_NAME_PATTERNS:
                    if re.search(pattern, name_lower):
                        has_os_pattern = True
                        break
                if has_os_pattern:
                    break

        # If we have O-S pattern and no explicit S-N compound, it's sulfate ester hydrolysis
        if has_os_pattern and not has_sn_compound:
            return ClassificationResult(
                is_member=False,
                explanation="O-S bond hydrolysis (sulfate ester), not S-N bond"
            )

        # If no S-N compound found, check for S and N as fallback
        if not has_sn_compound:
            diff = ReactionDiff(reaction)
            has_sulfur = "S" in diff.reactant_elements
            has_nitrogen = "N" in diff.reactant_elements
            
            # If we have both S and N, this could be S-N hydrolysis
            if has_sulfur and has_nitrogen:
                # Check for sulfate product (common in S-N hydrolysis)
                has_sulfate_product = any(
                    participant.chebi_id == "CHEBI:16189" or 
                    (participant.name and "sulfate" in participant.name.lower())
                    for participant in reaction.right_participants
                )
                
                # Check for amine/ammonia product (from N part)
                has_nitrogen_product = any(
                    participant.name and ("amine" in participant.name.lower() or "amino" in participant.name.lower() or 
                               "ammonium" in participant.name.lower() or "ammonia" in participant.name.lower())
                    for participant in reaction.right_participants
                )
                
                # Require BOTH sulfate product AND nitrogen-containing substrate
                # to infer S-N bond hydrolysis (was too permissive with OR)
                if has_sulfate_product and has_nitrogen_product:
                    # Likely S-N hydrolysis even without explicit compound name
                    has_sn_compound = True
                    sn_compound_name = "S-N bond compound (inferred)"

            if not (has_sulfur and has_nitrogen):
                return ClassificationResult(
                    is_member=False, 
                    explanation="No S-N bond compound detected (missing S or N)"
                )

        # At this point we have S-N compound - check products
        if has_sn_compound:
            # Check for amine product (expected from S-N cleavage)
            has_amine_product = any(
                participant.name and ("amine" in participant.name.lower() or "amino" in participant.name.lower())
                for participant in reaction.right_participants
            )

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

            # Build explanation
            explanation = f"S-N bond hydrolysis: {sn_compound_name}"
            
            if has_sulfate_product:
                explanation += " → sulfate"
            if has_amine_product:
                explanation += " + amine"
            
            # Check for acid conditions
            if self._check_acid_conditions(reaction):
                explanation += ", acid conditions"
            
            if match and match.matched:
                explanation += " [pattern matched]"
            
            return ClassificationResult(is_member=True, explanation=explanation)

        # If we still don't have evidence, be conservative
        return ClassificationResult(
            is_member=False,
            explanation="Insufficient evidence for S-N bond hydrolysis",
        )

Detailed Results

▶ True Positives 2
RHEA:17881 [GO:0016826]: N-sulfo-D-glucosamine + H2O = D-glucosamine + sulfate
S-N bond hydrolysis: N-sulfo-D-glucosamine(1-) → sulfate, acid conditions [pattern matched]
RHEA:18481 [GO:0016826]: cyclohexylsulfamate + H2O = cyclohexylamine + sulfate
S-N bond hydrolysis: cyclohexylsulfamate → sulfate, acid conditions [pattern matched]
▶ False Positives 2
RHEA:15517 [GO:0016826]: N(2),6-disulfo-D-glucosamine + H2O = N-sulfo-D-glucosamine + sulfate + H(+)
S-N bond hydrolysis: S-N bond compound (inferred) → sulfate + amine, acid conditions [pattern matched]
RHEA:31647 [GO:0016826]: beta-D-4-deoxy-Delta(4)-GlcpA-(1->3)-beta-D-GalpNAc6S + H2O = N-acetyl-beta-D-galactosamine 6-sulfate + 5-dehydro-4-deoxy-D-glucuronate
S-N bond hydrolysis: S-N bond compound (inferred) → sulfate + amine, acid conditions [pattern matched]
▶ True Negatives 3480
RHEA:10000 [GO:0016826]: pentanamide + H2O = pentanoate + NH4(+)
No S-N bond compound detected (missing S or N)
RHEA:10008 [GO:0016826]: a hydroperoxide + [protein]-dithiol = [protein]-disulfide + an alcohol + H2O
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10012 [GO:0016826]: (R)-6-hydroxynicotine + O2 + H2O = 6-hydroxypseudooxynicotine + H2O2
Not a hydrolase reaction: Pattern doesn't match expected hydrolysis transformation
RHEA:10016 [GO:0016826]: O-sinapoylcholine + H2O = (E)-sinapate + choline + H(+)
No S-N bond compound detected (missing S or N)
RHEA:10020 [GO:0016826]: L-saccharopine + NADP(+) + H2O = (S)-2-amino-6-oxohexanoate + L-glutamate + NADPH + H(+)
Not a hydrolase reaction: Pattern doesn't match expected hydrolysis transformation
RHEA:10024 [GO:0016826]: L-lysyl-[histone] + S-adenosyl-L-methionine = N(6)-methyl-L-lysyl-[histone] + S-adenosyl-L-homocysteine + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10028 [GO:0016826]: D-glutamate + O2 + H2O = H2O2 + 2-oxoglutarate + NH4(+)
Not a hydrolase reaction: Pattern doesn't match expected hydrolysis transformation
RHEA:10032 [GO:0016826]: [protein]-C-terminal-L-glutamine + H2O = [protein]-C-terminal-L-glutamate + NH4(+)
No S-N bond compound detected (missing S or N)
RHEA:10036 [GO:0016826]: 4-hydroxy-3-methoxy-benzenemethanol + O2 = vanillin + H2O2
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10040 [GO:0016826]: adenosine 3',5'-bisphosphate + H2O = AMP + phosphate
No S-N bond compound detected (missing S or N)
RHEA:10044 [GO:0016826]: cyclohexanol + NAD(+) = cyclohexanone + NADH + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10048 [GO:0016826]: O-acetyl-L-homoserine + methanethiol = L-methionine + acetate + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10052 [GO:0016826]: (2R)-hydroxy-4-methylpentanoate + NAD(+) = 4-methyl-2-oxopentanoate + NADH + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10056 [GO:0016826]: (3S)-3-aminobutanoyl-CoA = (2E)-butenoyl-CoA + NH4(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10060 [GO:0016826]: D-tryptophan + acetyl-CoA = N-acetyl-D-tryptophan + CoA + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10064 [GO:0016826]: (6R)-5,10-methylene-5,6,7,8-tetrahydrofolate + D-alanine + H2O = 2-methylserine + (6S)-5,6,7,8-tetrahydrofolate
Not a hydrolase reaction: Pattern doesn't match expected hydrolysis transformation
RHEA:10072 [GO:0016826]: N,N-dimethylglycine + S-adenosyl-L-methionine = glycine betaine + S-adenosyl-L-homocysteine + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10076 [GO:0016826]: lactose + H2O = beta-D-galactose + D-glucose
No S-N bond compound detected (missing S or N)
RHEA:10080 [GO:0016826]: dihydrophloroglucinol + NADP(+) = 1,3,5-trihydroxybenzene + NADPH
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10084 [GO:0016826]: 3,4-dihydroxybenzoate + O2 = 3-carboxy-cis,cis-muconate + 2 H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10088 [GO:0016826]: sucrose + UDP-alpha-D-galactose = 6(F)-alpha-D-galactosylsucrose + UDP + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10092 [GO:0016826]: a 2'-deoxyribonucleoside 3'-phosphate + H2O = a 2'-deoxyribonucleoside + phosphate
No S-N bond compound detected (missing S or N)
RHEA:10104 [GO:0016826]: gibberellin A20 + 2-oxoglutarate + O2 = gibberellin A1 + succinate + CO2
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10108 [GO:0016826]: (7S)-salutaridinol + NADP(+) = salutaridine + NADPH + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10112 [GO:0016826]: L-homocysteine + L-serine = L,L-cystathionine + H2O
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10116 [GO:0016826]: 6-phospho-D-gluconate + NADP(+) = D-ribulose 5-phosphate + CO2 + NADPH
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10124 [GO:0016826]: phenylacetone + NADPH + O2 + H(+) = benzyl acetate + NADP(+) + H2O
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10128 [GO:0016826]: all-trans-violaxanthin = all-trans-neoxanthin
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10132 [GO:0016826]: benzoate + ATP + CoA = benzoyl-CoA + AMP + diphosphate
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10136 [GO:0016826]: 2 glyoxylate + H(+) = 2-hydroxy-3-oxopropanoate + CO2
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10140 [GO:0016826]: prostaglandin F2alpha + NADP(+) = prostaglandin D2 + NADPH + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10148 [GO:0016826]: blasticidin S + H2O + H(+) = deaminohydroxyblasticidin S + NH4(+)
Not a hydrolase reaction: Pattern doesn't match expected hydrolysis transformation
RHEA:10152 [GO:0016826]: hydrogencarbonate + NH4(+) + ATP = carbamoyl phosphate + ADP + H2O + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10156 [GO:0016826]: dihydrochelirubine + reduced [NADPH--hemoprotein reductase] + O2 = 12-hydroxydihydrochelirubine + oxidized [NADPH--hemoprotein reductase] + H2O + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10160 [GO:0016826]: L-iditol + NAD(+) = keto-L-sorbose + NADH + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10164 [GO:0016826]: (2R)-2-phosphoglycerate = phosphoenolpyruvate + H2O
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10168 [GO:0016826]: 15,16-dihydrobiliverdin + oxidized 2[4Fe-4S]-[ferredoxin] = biliverdin IXalpha + reduced 2[4Fe-4S]-[ferredoxin] + 2 H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10172 [GO:0016826]: (3R)-hydroxybutanoate dimer + H2O = 2 (R)-3-hydroxybutanoate + H(+)
No S-N bond compound detected (missing S or N)
RHEA:10180 [GO:0016826]: (6R)-10-formyltetrahydrofolate + NADP(+) + H2O = (6S)-5,6,7,8-tetrahydrofolate + CO2 + NADPH + H(+)
Not a hydrolase reaction: Pattern doesn't match expected hydrolysis transformation
RHEA:10184 [GO:0016826]: (4,5-dihydro-5-oxofuran-2-yl)-acetate + H2O = 3-oxoadipate + H(+)
No S-N bond compound detected (missing S or N)
RHEA:10188 [GO:0016826]: acetoacetyl-CoA + acetyl-CoA + H2O = (3S)-3-hydroxy-3-methylglutaryl-CoA + CoA + H(+)
Not a hydrolase reaction: Pattern doesn't match expected hydrolysis transformation
RHEA:10192 [GO:0016826]: sulfate(out) + ATP + H2O = sulfate(in) + ADP + phosphate + H(+)
Not a hydrolase reaction: Pattern doesn't match expected hydrolysis transformation
RHEA:10196 [GO:0016826]: (1R,6R)-6-hydroxy-2-succinyl-cyclohexa-2,4-diene-1-carboxylate = 2-succinylbenzoate + H2O
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10200 [GO:0016826]: butanoate + NAD(+) = (2E)-2-butenoate + NADH + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10204 [GO:0016826]: dimethylamine + oxidized [electron-transfer flavoprotein] + H2O + H(+) = methylamine + reduced [electron-transfer flavoprotein] + formaldehyde
Not a hydrolase reaction: Pattern doesn't match expected hydrolysis transformation
RHEA:10208 [GO:0016826]: 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 reaction: No water reactant - not hydrolysis
RHEA:10212 [GO:0016826]: 5-aminopentanoate + 2-oxoglutarate = 5-oxopentanoate + L-glutamate
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10216 [GO:0016826]: [DNA-directed RNA polymerase] + ATP = phospho-[DNA-directed RNA polymerase] + ADP + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10220 [GO:0016826]: tRNA(Tyr) + L-tyrosine + ATP = L-tyrosyl-tRNA(Tyr) + AMP + diphosphate + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
RHEA:10224 [GO:0016826]: pyridoxal + ATP = pyridoxal 5'-phosphate + ADP + H(+)
Not a hydrolase reaction: No water reactant - not hydrolysis
... and 3430 more (showing 50 of 3480)