AminoacylTRNALigase

Definition

aminoacyl tRNA ligase

Examples:
- Tyrosyl-tRNA synthetase: tRNA(Tyr) + Tyr + ATP → Tyr-tRNA(Tyr) + AMP + PPi
- Valyl-tRNA synthetase: tRNA(Val) + Val + ATP → Val-tRNA(Val) + AMP + PPi
- Leucyl-tRNA synthetase: tRNA(Leu) + Leu + ATP → Leu-tRNA(Leu) + AMP + PPi

This class tests our ability to handle:
- Polymer substrates (tRNA molecules)
- Naming patterns (aminoacyl-tRNA formation)
- ATP → AMP + PPi energetics (different from kinases)

Performance Metrics

0.889
F1 Score
1.000
Precision
0.800
Recall
0.999
Accuracy
0.894
MCC
1.000
Specificity

Confusion Matrix

20
True Positives
0
False Positives
5
False Negatives
3459
True Negatives

Classification Code

aminoacyl_trna_ligase.py:57
Class-level declarative context used by the classifier, including identifiers, evidence requirements, and pattern definitions.
GO_ID = "GO:0004812"  # aminoacyl-tRNA ligase activity

    EC_NUMBER_PREFIX = "6.1.1.-"  # Ligases forming aminoacyl-tRNA

    PATTERNS: list[Reaction] = [
        # Classic aminoacyl-tRNA synthetase: tRNA + amino_acid + ATP → aminoacyl-tRNA + AMP + PPi
        var("tRNA") + var("amino_acid") + p(atp) 
        >> var("aminoacyl_tRNA") + p(amp) + p(diphosphate) + optional(h_plus),
        # Without explicit H+
        var("tRNA") + var("amino_acid") + p(atp) 
        >> var("aminoacyl_tRNA") + p(amp) + p(diphosphate),
        # Alternative order (some reactions have different participant order)
        var("amino_acid") + var("tRNA") + p(atp)
        >> var("aminoacyl_tRNA") + p(amp) + p(diphosphate),
    ]
aminoacyl_trna_ligase.py:73
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 tRNA synthetase using SIMPLE, DECLARATIVE approach.

        BIOCHEMICAL SIGNATURE:
        1. Must have ATP as energy source
        2. Must produce AMP + PPi (not ADP + Pi like kinases)
        3. Must involve tRNA (polymer substrate - "generic polymer" in RHEA)
        4. Must NOT be CoA ligase, asparagine synthetase, or other non-tRNA ligases
        5. Should be exactly 3→3 or 3→4 reaction (ATP activation pattern)
        """
        # 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("=")
        label_parts[0] if label_parts else ""
        product_str = label_parts[1] if len(label_parts) > 1 else ""

        # Must have ATP as energy source
        has_atp = any(
            p.chebi_id == CHEBI_ATP
            for p in reaction.left_participants
        )

        if not has_atp:
            return ClassificationResult(
                is_member=False,
                explanation="No ATP - tRNA synthetases require ATP for aminoacyl activation"
            )

        # Must produce AMP (not ADP) - this distinguishes from kinases
        has_amp = any(
            p.chebi_id == CHEBI_AMP
            for p in reaction.right_participants
        )

        if not has_amp:
            return ClassificationResult(
                is_member=False,
                explanation="No AMP product - tRNA synthetases use ATP → AMP + PPi energetics"
            )

        # Must produce diphosphate (PPi)
        has_diphosphate = any(
            p.chebi_id == CHEBI_DIPHOSPHATE
            for p in reaction.right_participants
        )

        if not has_diphosphate:
            return ClassificationResult(
                is_member=False,
                explanation="No diphosphate - tRNA synthetases produce AMP + PPi"
            )

        # CRITICAL: Must involve tRNA - now using polymer_type from ETL
        # tRNA synthetases have tRNA on BOTH sides (tRNA → aminoacyl-tRNA)
        has_trna_substrate = any(
            part.polymer_type == PolymerType.TRNA
            for part in reaction.left_participants
        )

        has_trna_product = any(
            part.polymer_type == PolymerType.TRNA
            for part in reaction.right_participants
        )

        if not (has_trna_substrate and has_trna_product):
            return ClassificationResult(
                is_member=False,
                explanation="No tRNA on both sides - not aminoacyl-tRNA synthesis"
            )

        # Exclude CoA ligases (have CoA as substrate or CoA in product name)
        CHEBI_COA = "CHEBI:57287"  # coenzyme A(4-)
        has_coa = any(
            p.chebi_id == CHEBI_COA
            for p in reaction.left_participants + reaction.right_participants
        ) or "coa" in label_lower

        if has_coa:
            return ClassificationResult(
                is_member=False,
                explanation="CoA present - CoA ligase not tRNA synthetase"
            )

        # Exclude asparagine/glutamine synthetases (produce amino acids, not aminoacyl-tRNA)
        # These produce asparagine/glutamine + AMP + PPi, not charged tRNA
        AMINO_ACID_PRODUCTS = {"asparagine", "glutamine", "pantothenate"}
        # Check if any of these appear in product_str outside the polymer context
        has_amino_acid_product = any(aa in product_str for aa in AMINO_ACID_PRODUCTS) and "polymer" not in product_str

        if has_amino_acid_product:
            return ClassificationResult(
                is_member=False,
                explanation="Produces free amino acid - amino acid synthetase not tRNA synthetase"
            )

        # Should be 3→3, 3→4, or 3→5 reaction
        # (tRNA + amino acid + ATP → charged tRNA + AMP + PPi [+ H+] [+ duplicates from ETL])
        # Note: ETL may add duplicate participants during label matching
        reactant_count = len(reaction.left_participants)
        product_count = len(reaction.right_participants)

        if reactant_count != 3 or product_count not in [3, 4, 5]:
            return ClassificationResult(
                is_member=False,
                explanation=f"Wrong stoichiometry ({reactant_count}→{product_count}) - expected 3→3/3→4/3→5"
            )

        return ClassificationResult(
            is_member=True,
            explanation="Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)"
        )

Detailed Results

▶ True Positives 20
RHEA:10220 [GO:0004812]: tRNA(Tyr) + L-tyrosine + ATP = L-tyrosyl-tRNA(Tyr) + AMP + diphosphate + H(+)
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:10704 [GO:0004812]: tRNA(Val) + L-valine + ATP = L-valyl-tRNA(Val) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:11060 [GO:0004812]: tRNA(Ile) + L-isoleucine + ATP = L-isoleucyl-tRNA(Ile) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:11180 [GO:0004812]: tRNA(Asn) + L-asparagine + ATP = L-asparaginyl-tRNA(Asn) + AMP + diphosphate + H(+)
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:11688 [GO:0004812]: tRNA(Leu) + L-leucine + ATP = L-leucyl-tRNA(Leu) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:12292 [GO:0004812]: tRNA(Ser) + L-serine + ATP = L-seryl-tRNA(Ser) + AMP + diphosphate + H(+)
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:12540 [GO:0004812]: tRNA(Ala) + L-alanine + ATP = L-alanyl-tRNA(Ala) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:13481 [GO:0004812]: tRNA(Met) + L-methionine + ATP = L-methionyl-tRNA(Met) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:14305 [GO:0004812]: tRNA(Pro) + L-proline + ATP = L-prolyl-tRNA(Pro) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:16013 [GO:0004812]: tRNA(Gly) + glycine + ATP = glycyl-tRNA(Gly) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:17773 [GO:0004812]: tRNA(Cys) + L-cysteine + ATP = L-cysteinyl-tRNA(Cys) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:18349 [GO:0004812]: tRNA(Asx) + L-aspartate + ATP = L-aspartyl-tRNA(Asx) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:18397 [GO:0004812]: tRNA(Glx) + L-glutamate + ATP = L-glutamyl-tRNA(Glx) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:19277 [GO:0004812]: tRNA(Pyl) + L-pyrrolysine + ATP = L-pyrrolysyl-tRNA(Pyl) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:19413 [GO:0004812]: tRNA(Phe) + L-phenylalanine + ATP = L-phenylalanyl-tRNA(Phe) + AMP + diphosphate + H(+)
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:19649 [GO:0004812]: tRNA(Asp) + L-aspartate + ATP = L-aspartyl-tRNA(Asp) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:20121 [GO:0004812]: tRNA(Gln) + L-glutamine + ATP = L-glutaminyl-tRNA(Gln) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:23540 [GO:0004812]: tRNA(Glu) + L-glutamate + ATP = L-glutamyl-tRNA(Glu) + AMP + diphosphate
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:24624 [GO:0004812]: tRNA(Thr) + L-threonine + ATP = L-threonyl-tRNA(Thr) + AMP + diphosphate + H(+)
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
RHEA:42580 [GO:0004812]: tRNA(Sec) + L-serine + ATP = L-seryl-tRNA(Sec) + AMP + diphosphate + H(+)
Aminoacyl tRNA ligase: aminoacyl-tRNA formation (polymer + AA + ATP -> charged polymer + AMP + PPi)
▶ False Negatives 5
RHEA:17313 [GO:0004812]: tRNA(His) + L-histidine + ATP = L-histidyl-tRNA(His) + AMP + diphosphate + H(+)
Wrong stoichiometry (4→5) - expected 3→3/3→4/3→5
RHEA:20301 [GO:0004812]: tRNA(Arg) + L-arginine + ATP = L-arginyl-tRNA(Arg) + AMP + diphosphate
Wrong stoichiometry (4→4) - expected 3→3/3→4/3→5
RHEA:20792 [GO:0004812]: tRNA(Lys) + L-lysine + ATP = L-lysyl-tRNA(Lys) + AMP + diphosphate
Wrong stoichiometry (4→4) - expected 3→3/3→4/3→5
RHEA:24080 [GO:0004812]: tRNA(Trp) + L-tryptophan + ATP = L-tryptophyl-tRNA(Trp) + AMP + diphosphate + H(+)
Wrong stoichiometry (4→5) - expected 3→3/3→4/3→5
RHEA:25678 [GO:0004812]: tRNA(Cys) + O-phospho-L-serine + ATP = O-phospho-L-seryl-tRNA(Cys) + AMP + diphosphate
Wrong stoichiometry (4→4) - expected 3→3/3→4/3→5
▶ True Negatives 3459
RHEA:10000 [GO:0004812]: pentanamide + H2O = pentanoate + NH4(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10008 [GO:0004812]: a hydroperoxide + [protein]-dithiol = [protein]-disulfide + an alcohol + H2O
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10012 [GO:0004812]: (R)-6-hydroxynicotine + O2 + H2O = 6-hydroxypseudooxynicotine + H2O2
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10016 [GO:0004812]: O-sinapoylcholine + H2O = (E)-sinapate + choline + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10020 [GO:0004812]: L-saccharopine + NADP(+) + H2O = (S)-2-amino-6-oxohexanoate + L-glutamate + NADPH + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10024 [GO:0004812]: L-lysyl-[histone] + S-adenosyl-L-methionine = N(6)-methyl-L-lysyl-[histone] + S-adenosyl-L-homocysteine + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10028 [GO:0004812]: D-glutamate + O2 + H2O = H2O2 + 2-oxoglutarate + NH4(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10032 [GO:0004812]: [protein]-C-terminal-L-glutamine + H2O = [protein]-C-terminal-L-glutamate + NH4(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10036 [GO:0004812]: 4-hydroxy-3-methoxy-benzenemethanol + O2 = vanillin + H2O2
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10040 [GO:0004812]: adenosine 3',5'-bisphosphate + H2O = AMP + phosphate
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10044 [GO:0004812]: cyclohexanol + NAD(+) = cyclohexanone + NADH + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10048 [GO:0004812]: O-acetyl-L-homoserine + methanethiol = L-methionine + acetate + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10052 [GO:0004812]: (2R)-hydroxy-4-methylpentanoate + NAD(+) = 4-methyl-2-oxopentanoate + NADH + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10056 [GO:0004812]: (3S)-3-aminobutanoyl-CoA = (2E)-butenoyl-CoA + NH4(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10060 [GO:0004812]: D-tryptophan + acetyl-CoA = N-acetyl-D-tryptophan + CoA + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10064 [GO:0004812]: (6R)-5,10-methylene-5,6,7,8-tetrahydrofolate + D-alanine + H2O = 2-methylserine + (6S)-5,6,7,8-tetrahydrofolate
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10072 [GO:0004812]: N,N-dimethylglycine + S-adenosyl-L-methionine = glycine betaine + S-adenosyl-L-homocysteine + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10076 [GO:0004812]: lactose + H2O = beta-D-galactose + D-glucose
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10080 [GO:0004812]: dihydrophloroglucinol + NADP(+) = 1,3,5-trihydroxybenzene + NADPH
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10084 [GO:0004812]: 3,4-dihydroxybenzoate + O2 = 3-carboxy-cis,cis-muconate + 2 H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10088 [GO:0004812]: sucrose + UDP-alpha-D-galactose = 6(F)-alpha-D-galactosylsucrose + UDP + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10092 [GO:0004812]: a 2'-deoxyribonucleoside 3'-phosphate + H2O = a 2'-deoxyribonucleoside + phosphate
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10104 [GO:0004812]: gibberellin A20 + 2-oxoglutarate + O2 = gibberellin A1 + succinate + CO2
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10108 [GO:0004812]: (7S)-salutaridinol + NADP(+) = salutaridine + NADPH + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10112 [GO:0004812]: L-homocysteine + L-serine = L,L-cystathionine + H2O
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10116 [GO:0004812]: 6-phospho-D-gluconate + NADP(+) = D-ribulose 5-phosphate + CO2 + NADPH
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10124 [GO:0004812]: phenylacetone + NADPH + O2 + H(+) = benzyl acetate + NADP(+) + H2O
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10128 [GO:0004812]: all-trans-violaxanthin = all-trans-neoxanthin
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10132 [GO:0004812]: benzoate + ATP + CoA = benzoyl-CoA + AMP + diphosphate
No tRNA on both sides - not aminoacyl-tRNA synthesis
RHEA:10136 [GO:0004812]: 2 glyoxylate + H(+) = 2-hydroxy-3-oxopropanoate + CO2
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10140 [GO:0004812]: prostaglandin F2alpha + NADP(+) = prostaglandin D2 + NADPH + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10148 [GO:0004812]: blasticidin S + H2O + H(+) = deaminohydroxyblasticidin S + NH4(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10152 [GO:0004812]: hydrogencarbonate + NH4(+) + ATP = carbamoyl phosphate + ADP + H2O + H(+)
No AMP product - tRNA synthetases use ATP → AMP + PPi energetics
RHEA:10156 [GO:0004812]: dihydrochelirubine + reduced [NADPH--hemoprotein reductase] + O2 = 12-hydroxydihydrochelirubine + oxidized [NADPH--hemoprotein reductase] + H2O + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10160 [GO:0004812]: L-iditol + NAD(+) = keto-L-sorbose + NADH + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10164 [GO:0004812]: (2R)-2-phosphoglycerate = phosphoenolpyruvate + H2O
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10168 [GO:0004812]: 15,16-dihydrobiliverdin + oxidized 2[4Fe-4S]-[ferredoxin] = biliverdin IXalpha + reduced 2[4Fe-4S]-[ferredoxin] + 2 H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10172 [GO:0004812]: (3R)-hydroxybutanoate dimer + H2O = 2 (R)-3-hydroxybutanoate + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10180 [GO:0004812]: (6R)-10-formyltetrahydrofolate + NADP(+) + H2O = (6S)-5,6,7,8-tetrahydrofolate + CO2 + NADPH + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10184 [GO:0004812]: (4,5-dihydro-5-oxofuran-2-yl)-acetate + H2O = 3-oxoadipate + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10188 [GO:0004812]: acetoacetyl-CoA + acetyl-CoA + H2O = (3S)-3-hydroxy-3-methylglutaryl-CoA + CoA + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10192 [GO:0004812]: sulfate(out) + ATP + H2O = sulfate(in) + ADP + phosphate + H(+)
No AMP product - tRNA synthetases use ATP → AMP + PPi energetics
RHEA:10196 [GO:0004812]: (1R,6R)-6-hydroxy-2-succinyl-cyclohexa-2,4-diene-1-carboxylate = 2-succinylbenzoate + H2O
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10200 [GO:0004812]: butanoate + NAD(+) = (2E)-2-butenoate + NADH + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10204 [GO:0004812]: dimethylamine + oxidized [electron-transfer flavoprotein] + H2O + H(+) = methylamine + reduced [electron-transfer flavoprotein] + formaldehyde
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10208 [GO:0004812]: an N-terminal L-alpha-aminoacyl-[protein] + L-arginyl-tRNA(Arg) = an N-terminal L-arginyl-L-aminoacyl-[protein] + tRNA(Arg) + H(+)
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10212 [GO:0004812]: 5-aminopentanoate + 2-oxoglutarate = 5-oxopentanoate + L-glutamate
No ATP - tRNA synthetases require ATP for aminoacyl activation
RHEA:10216 [GO:0004812]: [DNA-directed RNA polymerase] + ATP = phospho-[DNA-directed RNA polymerase] + ADP + H(+)
No AMP product - tRNA synthetases use ATP → AMP + PPi energetics
RHEA:10224 [GO:0004812]: pyridoxal + ATP = pyridoxal 5'-phosphate + ADP + H(+)
No AMP product - tRNA synthetases use ATP → AMP + PPi energetics
RHEA:10232 [GO:0004812]: 5,6-dihydrouridine 5'-phosphate + diphosphate = 5,6-dihydrouracil + 5-phospho-alpha-D-ribose 1-diphosphate
No ATP - tRNA synthetases require ATP for aminoacyl activation
... and 3409 more (showing 50 of 3459)