Aminopeptidase

Definition

aminopeptidase

Detects cleavage of N-terminal amino acids from peptides.

Performance Metrics

0.000
F1 Score
0.000
Precision
0.000
Recall
0.998
Accuracy
0.000
MCC
0.998
Specificity

Confusion Matrix

0
True Positives
8
False Positives
0
False Negatives
3476
True Negatives

Classification Code

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

    EC_NUMBER_PREFIX = "3.4.11.-"  # EC prefix for aminopeptidases
aminopeptidase.py:39
Imperative membership logic. This often calls the declarative class attributes shown above.
    def check_membership_impl(self, reaction: Reaction) -> ClassificationResult:
        """
        Check if reaction represents aminopeptidase activity.

        Strategy:
        1. Look for water as reactant
        2. Detect peptide substrate (multiple peptide bonds)
        3. Look for amino acid products
        4. Verify shorter peptide product (fewer peptide bonds)
        """
        # Use RHEA label for pattern matching
        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 ""

        # Check for water reactant
        has_water = any(
            p.chebi_id == CHEBI_H2O or (p.smiles == "O")
            for p in reaction.left_participants
        )

        if not has_water:
            return ClassificationResult(
                is_member=False, explanation="No water reactant found"
            )

        # Count peptide bonds in reactants
        # Note: A single "peptide bond" SMARTS match isn't enough because it also
        # matches cyclic amides (e.g., 5-oxoproline). We require at least 2 matches
        # to indicate a true peptide chain, OR explicit naming.
        reactant_peptide_bonds = 0
        has_peptide_substrate = False

        for p in reaction.left_participants:
            mol = p.get_mol()
            if mol is not None and PEPTIDE_BOND_SMARTS is not None:
                matches = mol.GetSubstructMatches(PEPTIDE_BOND_SMARTS)
                if matches:
                    reactant_peptide_bonds += len(matches)
                    # Require at least 2 peptide bonds for structural detection
                    # (dipeptide = 1 bond, but we can't distinguish from cyclic amides)
                    if len(matches) >= 2:
                        has_peptide_substrate = True

        if not has_peptide_substrate:
            # Check for peptide-related patterns in label (more reliable for dipeptides)
            # Use specific patterns: "peptide", "polypeptide", "protein", or
            # amino acid dipeptide naming like "L-alanyl-L-glycine" (amino-yl-amino)
            # Explicit peptide/protein keywords
            if any(kw in substrate_str for kw in ["peptide", "polypeptide", "protein"]):
                has_peptide_substrate = True
                reactant_peptide_bonds = max(reactant_peptide_bonds, 1)
            # Dipeptide pattern: check for amino-yl-amino naming
            # e.g., "L-leucyl-L-proline" but NOT "N-acetyl-D-glucosaminyl"
            elif "-yl-" in substrate_str and "l-" in substrate_str:
                # Exclude glycosyl/acetyl compounds
                if not any(exc in substrate_str for exc in ["glucosaminyl", "acetyl", "glycosyl", "mannosyl", "galactosyl"]):
                    has_peptide_substrate = True
                    reactant_peptide_bonds = max(reactant_peptide_bonds, 1)

        if not has_peptide_substrate:
            return ClassificationResult(
                is_member=False, explanation="No peptide substrate found"
            )

        # Check for amino acid products
        # Known amino acids that can be cleaved by aminopeptidases
        AMINO_ACID_CHEBI = {
            "CHEBI:16449",  # alanine
            "CHEBI:29016",  # L-alanine
            "CHEBI:16467",  # arginine
            "CHEBI:32682",  # L-arginine
            "CHEBI:17196",  # asparagine
            "CHEBI:17053",  # aspartic acid
            "CHEBI:15356",  # cysteine
            "CHEBI:16015",  # glutamic acid
            "CHEBI:16017",  # glutamine
            "CHEBI:15428",  # glycine
            "CHEBI:15971",  # histidine
            "CHEBI:16847",  # isoleucine
            "CHEBI:15603",  # leucine
            "CHEBI:25017",  # L-leucine
            "CHEBI:16643",  # lysine
            "CHEBI:16811",  # methionine
            "CHEBI:17295",  # phenylalanine
            "CHEBI:17203",  # proline
            "CHEBI:17115",  # serine
            "CHEBI:16857",  # threonine
            "CHEBI:16828",  # tryptophan
            "CHEBI:17895",  # tyrosine
            "CHEBI:16414",  # valine
            "CHEBI:33704",  # alpha-amino acid
        }

        has_amino_acid_product = False
        for p in reaction.right_participants:
            if p.chebi_id in AMINO_ACID_CHEBI:
                has_amino_acid_product = True
                break
            # Check by structure
            mol = p.get_mol()
            if mol is not None and AMINO_ACID_SMARTS is not None:
                if mol.HasSubstructMatch(AMINO_ACID_SMARTS):
                    # Verify it's a single amino acid (no peptide bonds)
                    peptide_matches = mol.GetSubstructMatches(PEPTIDE_BOND_SMARTS) if PEPTIDE_BOND_SMARTS else []
                    if len(peptide_matches) == 0:
                        has_amino_acid_product = True
                        break

        # Count peptide bonds in products
        product_peptide_bonds = 0
        has_shorter_peptide = False

        for p in reaction.right_participants:
            mol = p.get_mol()
            if mol is not None and PEPTIDE_BOND_SMARTS is not None:
                matches = mol.GetSubstructMatches(PEPTIDE_BOND_SMARTS)
                if matches:
                    product_peptide_bonds += len(matches)
                    has_shorter_peptide = True

        # Exclude glycosyl hydrolases by checking product label
        # Aminopeptidase should not produce sugar/glycan products
        sugar_keywords = ["glucosamin", "galactos", "mannos", "fructos", "xylos", "ribos"]
        has_sugar_product = any(kw in product_str for kw in sugar_keywords)

        if has_sugar_product:
            return ClassificationResult(
                is_member=False,
                explanation="Products include sugars - likely glycosyl hydrolase, not aminopeptidase",
            )

        # Aminopeptidase: peptide substrate + amino acid product + shorter peptide
        if has_peptide_substrate and has_amino_acid_product:
            # For true aminopeptidase:
            # - Substrate has peptide bonds
            # - Product has amino acid + remaining peptide (fewer bonds)
            if product_peptide_bonds < reactant_peptide_bonds and product_peptide_bonds >= 0:
                return ClassificationResult(
                    is_member=True,
                    explanation="Aminopeptidase: N-terminal amino acid cleavage from peptide",
                )
            # Dipeptide case: substrate has 1 peptide bond, products are 2 amino acids
            if reactant_peptide_bonds == 1 and product_peptide_bonds == 0 and has_amino_acid_product:
                return ClassificationResult(
                    is_member=True,
                    explanation="Aminopeptidase: dipeptide → two amino acids",
                )

        # Fallback: peptide → shorter peptide + amino acid
        if has_shorter_peptide and has_amino_acid_product and product_peptide_bonds >= 1:
            return ClassificationResult(
                is_member=True,
                explanation="Aminopeptidase: peptide → amino acid + shorter peptide",
            )

        return ClassificationResult(
            is_member=False, explanation="No clear aminopeptidase pattern detected"
        )

Detailed Results

▶ False Positives 8
RHEA:10032 [GO:0004177]: [protein]-C-terminal-L-glutamine + H2O = [protein]-C-terminal-L-glutamate + NH4(+)
Aminopeptidase: N-terminal amino acid cleavage from peptide
RHEA:20720 [GO:0004177]: isopenicillin N + phenylacetyl-CoA + H2O = penicillin G + L-2-aminoadipate + CoA + H(+)
Aminopeptidase: peptide → amino acid + shorter peptide
RHEA:28398 [GO:0004177]: L-alanyl-gamma-D-glutamyl-meso-2,6-diaminopimelate + H2O = L-alanyl-D-glutamate + meso-2,6-diaminopimelate
Aminopeptidase: N-terminal amino acid cleavage from peptide
RHEA:28807 [GO:0004177]: glutathione + H2O = L-cysteinylglycine + L-glutamate
Aminopeptidase: N-terminal amino acid cleavage from peptide
RHEA:31563 [GO:0004177]: leukotriene C4 + H2O = leukotriene D4 + L-glutamate
Aminopeptidase: N-terminal amino acid cleavage from peptide
RHEA:48520 [GO:0004177]: [protein]-C-terminal S-[(2E,6E)-farnesyl]-L-cysteine methyl ester + H2O = [protein]-C-terminal S-[(2E,6E)-farnesyl]-L-cysteine + methanol + H(+)
Aminopeptidase: N-terminal amino acid cleavage from peptide
RHEA:48548 [GO:0004177]: [phosphatase 2A protein]-C-terminal L-leucine methyl ester + H2O = [phosphatase 2A protein]-C-terminal L-leucine + methanol + H(+)
Aminopeptidase: N-terminal amino acid cleavage from peptide
RHEA:61020 [GO:0004177]: uridine(34) in tRNA + acetyl-CoA + S-adenosyl-L-methionine + H2O = 5-(carboxymethyl)uridine(34) in tRNA + 5'-deoxyadenosine + L-methionine + CoA + 2 H(+)
Aminopeptidase: peptide → amino acid + shorter peptide
▶ True Negatives 3476
RHEA:10000 [GO:0004177]: pentanamide + H2O = pentanoate + NH4(+)
No peptide substrate found
RHEA:10008 [GO:0004177]: a hydroperoxide + [protein]-dithiol = [protein]-disulfide + an alcohol + H2O
No water reactant found
RHEA:10012 [GO:0004177]: (R)-6-hydroxynicotine + O2 + H2O = 6-hydroxypseudooxynicotine + H2O2
No peptide substrate found
RHEA:10016 [GO:0004177]: O-sinapoylcholine + H2O = (E)-sinapate + choline + H(+)
No peptide substrate found
RHEA:10020 [GO:0004177]: L-saccharopine + NADP(+) + H2O = (S)-2-amino-6-oxohexanoate + L-glutamate + NADPH + H(+)
No peptide substrate found
RHEA:10024 [GO:0004177]: L-lysyl-[histone] + S-adenosyl-L-methionine = N(6)-methyl-L-lysyl-[histone] + S-adenosyl-L-homocysteine + H(+)
No water reactant found
RHEA:10028 [GO:0004177]: D-glutamate + O2 + H2O = H2O2 + 2-oxoglutarate + NH4(+)
No peptide substrate found
RHEA:10036 [GO:0004177]: 4-hydroxy-3-methoxy-benzenemethanol + O2 = vanillin + H2O2
No water reactant found
RHEA:10040 [GO:0004177]: adenosine 3',5'-bisphosphate + H2O = AMP + phosphate
No peptide substrate found
RHEA:10044 [GO:0004177]: cyclohexanol + NAD(+) = cyclohexanone + NADH + H(+)
No water reactant found
RHEA:10048 [GO:0004177]: O-acetyl-L-homoserine + methanethiol = L-methionine + acetate + H(+)
No water reactant found
RHEA:10052 [GO:0004177]: (2R)-hydroxy-4-methylpentanoate + NAD(+) = 4-methyl-2-oxopentanoate + NADH + H(+)
No water reactant found
RHEA:10056 [GO:0004177]: (3S)-3-aminobutanoyl-CoA = (2E)-butenoyl-CoA + NH4(+)
No water reactant found
RHEA:10060 [GO:0004177]: D-tryptophan + acetyl-CoA = N-acetyl-D-tryptophan + CoA + H(+)
No water reactant found
RHEA:10064 [GO:0004177]: (6R)-5,10-methylene-5,6,7,8-tetrahydrofolate + D-alanine + H2O = 2-methylserine + (6S)-5,6,7,8-tetrahydrofolate
No peptide substrate found
RHEA:10072 [GO:0004177]: N,N-dimethylglycine + S-adenosyl-L-methionine = glycine betaine + S-adenosyl-L-homocysteine + H(+)
No water reactant found
RHEA:10076 [GO:0004177]: lactose + H2O = beta-D-galactose + D-glucose
No peptide substrate found
RHEA:10080 [GO:0004177]: dihydrophloroglucinol + NADP(+) = 1,3,5-trihydroxybenzene + NADPH
No water reactant found
RHEA:10084 [GO:0004177]: 3,4-dihydroxybenzoate + O2 = 3-carboxy-cis,cis-muconate + 2 H(+)
No water reactant found
RHEA:10088 [GO:0004177]: sucrose + UDP-alpha-D-galactose = 6(F)-alpha-D-galactosylsucrose + UDP + H(+)
No water reactant found
RHEA:10092 [GO:0004177]: a 2'-deoxyribonucleoside 3'-phosphate + H2O = a 2'-deoxyribonucleoside + phosphate
No peptide substrate found
RHEA:10104 [GO:0004177]: gibberellin A20 + 2-oxoglutarate + O2 = gibberellin A1 + succinate + CO2
No water reactant found
RHEA:10108 [GO:0004177]: (7S)-salutaridinol + NADP(+) = salutaridine + NADPH + H(+)
No water reactant found
RHEA:10112 [GO:0004177]: L-homocysteine + L-serine = L,L-cystathionine + H2O
No water reactant found
RHEA:10116 [GO:0004177]: 6-phospho-D-gluconate + NADP(+) = D-ribulose 5-phosphate + CO2 + NADPH
No water reactant found
RHEA:10124 [GO:0004177]: phenylacetone + NADPH + O2 + H(+) = benzyl acetate + NADP(+) + H2O
No water reactant found
RHEA:10128 [GO:0004177]: all-trans-violaxanthin = all-trans-neoxanthin
No water reactant found
RHEA:10132 [GO:0004177]: benzoate + ATP + CoA = benzoyl-CoA + AMP + diphosphate
No water reactant found
RHEA:10136 [GO:0004177]: 2 glyoxylate + H(+) = 2-hydroxy-3-oxopropanoate + CO2
No water reactant found
RHEA:10140 [GO:0004177]: prostaglandin F2alpha + NADP(+) = prostaglandin D2 + NADPH + H(+)
No water reactant found
RHEA:10148 [GO:0004177]: blasticidin S + H2O + H(+) = deaminohydroxyblasticidin S + NH4(+)
No peptide substrate found
RHEA:10152 [GO:0004177]: hydrogencarbonate + NH4(+) + ATP = carbamoyl phosphate + ADP + H2O + H(+)
No water reactant found
RHEA:10156 [GO:0004177]: dihydrochelirubine + reduced [NADPH--hemoprotein reductase] + O2 = 12-hydroxydihydrochelirubine + oxidized [NADPH--hemoprotein reductase] + H2O + H(+)
No water reactant found
RHEA:10160 [GO:0004177]: L-iditol + NAD(+) = keto-L-sorbose + NADH + H(+)
No water reactant found
RHEA:10164 [GO:0004177]: (2R)-2-phosphoglycerate = phosphoenolpyruvate + H2O
No water reactant found
RHEA:10168 [GO:0004177]: 15,16-dihydrobiliverdin + oxidized 2[4Fe-4S]-[ferredoxin] = biliverdin IXalpha + reduced 2[4Fe-4S]-[ferredoxin] + 2 H(+)
No water reactant found
RHEA:10172 [GO:0004177]: (3R)-hydroxybutanoate dimer + H2O = 2 (R)-3-hydroxybutanoate + H(+)
No peptide substrate found
RHEA:10180 [GO:0004177]: (6R)-10-formyltetrahydrofolate + NADP(+) + H2O = (6S)-5,6,7,8-tetrahydrofolate + CO2 + NADPH + H(+)
No clear aminopeptidase pattern detected
RHEA:10184 [GO:0004177]: (4,5-dihydro-5-oxofuran-2-yl)-acetate + H2O = 3-oxoadipate + H(+)
No peptide substrate found
RHEA:10188 [GO:0004177]: acetoacetyl-CoA + acetyl-CoA + H2O = (3S)-3-hydroxy-3-methylglutaryl-CoA + CoA + H(+)
No clear aminopeptidase pattern detected
RHEA:10192 [GO:0004177]: sulfate(out) + ATP + H2O = sulfate(in) + ADP + phosphate + H(+)
No peptide substrate found
RHEA:10196 [GO:0004177]: (1R,6R)-6-hydroxy-2-succinyl-cyclohexa-2,4-diene-1-carboxylate = 2-succinylbenzoate + H2O
No water reactant found
RHEA:10200 [GO:0004177]: butanoate + NAD(+) = (2E)-2-butenoate + NADH + H(+)
No water reactant found
RHEA:10204 [GO:0004177]: dimethylamine + oxidized [electron-transfer flavoprotein] + H2O + H(+) = methylamine + reduced [electron-transfer flavoprotein] + formaldehyde
No clear aminopeptidase pattern detected
RHEA:10208 [GO:0004177]: an N-terminal L-alpha-aminoacyl-[protein] + L-arginyl-tRNA(Arg) = an N-terminal L-arginyl-L-aminoacyl-[protein] + tRNA(Arg) + H(+)
No water reactant found
RHEA:10212 [GO:0004177]: 5-aminopentanoate + 2-oxoglutarate = 5-oxopentanoate + L-glutamate
No water reactant found
RHEA:10216 [GO:0004177]: [DNA-directed RNA polymerase] + ATP = phospho-[DNA-directed RNA polymerase] + ADP + H(+)
No water reactant found
RHEA:10220 [GO:0004177]: tRNA(Tyr) + L-tyrosine + ATP = L-tyrosyl-tRNA(Tyr) + AMP + diphosphate + H(+)
No water reactant found
RHEA:10224 [GO:0004177]: pyridoxal + ATP = pyridoxal 5'-phosphate + ADP + H(+)
No water reactant found
RHEA:10232 [GO:0004177]: 5,6-dihydrouridine 5'-phosphate + diphosphate = 5,6-dihydrouracil + 5-phospho-alpha-D-ribose 1-diphosphate
No water reactant found
... and 3426 more (showing 50 of 3476)

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 2
These reactions lack direct GO support for this class and already carry a different EC assignment. They are useful false-positive review candidates.
RHEA:26554: angiotensin II + H2O = angiotensin-(1-7) + L-phenylalanine
EC annotation: EC:3.4.17.23
Aminopeptidase: N-terminal amino acid cleavage from peptide
RHEA:36663: (S)-1-pyrroline-5-carboxylate + malonyl-CoA + H2O + H(+) = (2S,5S)-5-carboxymethylproline + CO2 + CoA
EC annotation: EC:2.3.1.226
Aminopeptidase: peptide → amino acid + shorter peptide