Repository navigation
[FIX] Correct t6A chemistry in the MODOMICS catalog - #10902
Conversation
Restore the t6A nucleoside formula and neutral masses to match MODOMICS and the existing TSV catalog. Correct its protonated mass and replace the SMILES with the t6A structure from MODOMICS entry 130. Co-authored-by: GPT-6.1 Sol <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the t6A catalog correction.
No open issues 🎉
What changed in this PR
Corrects the t6A entry in OpenMS’s active MODOMICS catalog, which supplies modification chemistry for NASE precursor and fragment calculations.
Changes:
- Updates the formula to
C15H20N6O8and corrects the neutral, average, and protonated masses. - Replaces the SMILES representation with the corrected t6A structure.
| File | Description |
|---|---|
share/OpenMS/CHEMISTRY/Modomics.json |
Corrects t6A’s formula, masses, and molecular structure. |
Review effort: Balanced
timosachsenberg
left a comment
There was a problem hiding this comment.
AI-generated initial review
This is an automated, AI-generated first review. It looks only for high- and medium-priority issues (no nits) and checks whether the PR has tests and measurements. Please double-check anything before acting on it; a maintainer will follow up. I reviewed 4e0a9ce against develop (339429fe, the base of this PR).
What I checked:
-
Chemistry of the new t6A entry (with RDKit):
- the new SMILES gives C15H20N6O8, monoisotopic 412.1343 Da, average 412.359 Da;
mass_protis M + 1.00728;- the stereocentres are L-threonine (2S,3R) and β-D-ribose, as in adenosine;
- formula and masses match the t6A row of
Modomics.tsv.
The old SMILES (C15H21N7O7) attached the carbamoyl to threonine's carboxyl group as an amide and left the α-amine free. That explains the extra N and H and the missing O.
-
Loader:
ModomicsJSONDataProvidertakes the formula fromformulaand the monoisotopic mass frommass_monoiso, so both had to change, and both did. -
Users of t6A in the repository: none outside the catalogs. The
NucleicAcidSearchEngineTOPP tests list t6A only among the allowed values, not in a search, so no reference output changes. -
Build and test: Linux, GCC 13.3, Release.
RibonucleotideDB_testwith the test below passes with this PR's JSON and fails with develop's. -
CI:
build-and-testpasses on Linux (gcc, clang, arm) and macOS. Windows and the wheel builds were still running at the time of writing.
Verdict:
-
High priority: none.
-
Medium priority:
-
m6t6A in the same JSON carries t6A's chemistry, and after this PR the two are isobaric.
- The entry: entry
"16"(m6t6A, N6-methyl-N6-threonylcarbamoyladenosine) has formula C15H20N6O8, mass 412.1343,mass_prot413.1416, and a SMILES without the N6-methyl group. That is t6A. - What the other files say:
Modomics.tsvand the ambiguity codem6t6A/hn6AinCustom_RNA_modifications.tsvboth use C16H22N6O8 (426.1499 Da). - Effect:
- before this PR, a search with "m6t6A" matched t6A by mass;
- with this PR, t6A and m6t6A have the same formula, so a search with both as variable modifications cannot tell them apart;
- m6t6A itself is still 14.0157 Da too light, and
m6t6A/hn6Apairs a 412 Da and a 426 Da alternative.
Suggested fix (in this PR, since it is the same error family and now collides with the corrected t6A; or as an immediate follow-up):
- formula
C16H22N6O8; mass_monoiso426.1499;mass_avg426.3868 (the TSV value);mass_prot427.1572;- SMILES
C[C@H]([C@@H](C(=O)O)NC(=O)N(C)C1=C2C(=NC=N1)N(C=N2)[C@H]3[C@@H]([C@@H]([C@H](O3)CO)O)O)O, which RDKit checks as C16H22N6O8 / 426.1499 with the same stereocentres as t6A.
Please check it against MODOMICS before applying.
- The entry: entry
-
-
Outside this PR, for a separate look: 8 more entries have a JSON formula that differs from the TSV:
m7G,m2,7G,m2,2,7G,m2,7Gm: the cationic m7G family, where the JSON and TSV disagree by 2 H;m3C: formula H16 with the mass of the H15 neutral;Ar(p),Gr(p),pG(pN).
Some may be charge conventions, but a catalog-wide check of
formulaagainstmass_monoisowould catch errors like the t6A one. -
Before merge (process): nothing; the AI-policy box is ticked and the description gives the source (MODOMICS entry 130).
Tests
-
You added: none. You ran the existing
RibonucleotideDB_test,Ribonucleotide_test,NASequence_testandEmpiricalFormula_test, which do not check t6A. -
Missing: a regression test for the corrected entry. This one passes with this PR and fails on develop:
Test for
RibonucleotideDB_test.cppSTART_SECTION(([EXTRA] t6A chemistry (MODOMICS entry 130))) { // N6-threonylcarbamoyladenosine: threonine bound to the N6 of adenosine through a // carbamoyl (urea) group, with a free carboxylic acid const Ribonucleotide* t6a = ptr->getRibonucleotide("t6A"); TEST_EQUAL(t6a->getFormula() == EmpiricalFormula("C15H20N6O8"), true) TEST_REAL_SIMILAR(t6a->getMonoMass(), 412.1343) TEST_REAL_SIMILAR(t6a->getFormula().getMonoWeight(), 412.1343) } END_SECTION
If you also fix m6t6A, the same pattern with C16H22N6O8 / 426.1499 covers it.
Measurements
- You provided: the reference values from MODOMICS and the TSV catalog.
- Added here: an independent check of formula, masses and stereochemistry from the SMILES. A search on real data is not needed for a catalog correction of this kind; a NucleicAcidSearchEngine run on t6A-containing tRNA data would show the effect, but I did not run one.
Generated by Claude Code
Written by an AI agent using GPT-6.1 Sol.
Description
Correct the t6A entry in
share/OpenMS/CHEMISTRY/Modomics.json:C15H21N7O7→C15H20N6O8.The active JSON catalog supplies NASE's modification chemistry. The incorrect formula and masses affect precursor and fragment calculations for t6A-containing oligonucleotides. Formula and structure reference: MODOMICS entry 130.
Validation
Built the existing
RibonucleotideDB_test,Ribonucleotide_test,NASequence_testandEmpiricalFormula_testout of tree against the existing local Debug libOpenMS; all four pass with the corrected catalog. A file-open trace confirms that the C++ loader reads the updated catalog. JSON validation andgit diff --checkpass.Checklist
AI use
Co-authored-by:trailer.Summary by CodeRabbit