Skip to content

[FIX] Correct t6A chemistry in the MODOMICS catalog - #10902

Merged
poshul merged 1 commit into
OpenMS:developfrom
poshul:codex/fix-t6a-chemistry
Nov 14, 2026
Merged

poshul merged 1 commit into
OpenMS:developfrom
poshul:codex/fix-t6a-chemistry

Conversation

@poshul

@poshul poshul commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Written by an AI agent using GPT-6.1 Sol.

Description

Correct the t6A entry in share/OpenMS/CHEMISTRY/Modomics.json:

  • Formula: C15H21N7O7 → C15H20N6O8.
  • Neutral monoisotopic mass: 411.1343 → 412.1343 Da; average mass: 411.37 → 412.3598 Da, matching the existing TSV catalog.
  • Protonated mass: 412.1421 → 413.1415 Da; replace the SMILES with the correct t6A structure.

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_test and EmpiricalFormula_test out 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 and git diff --check pass.

Checklist

  • Contributor is listed in AUTHORS.
  • Relevant existing unit tests pass locally.
  • Python bindings require no changes.

AI use

  • Human contributor has read the OpenMS AI Policy, understands and has reviewed and tested the change, and can explain it.
  • Substantial AI assistance; the commit carries a Co-authored-by: trailer.

Summary by CodeRabbit

  • Bug Fixes
    • Updated the reference data for t⁶A, including its elemental formula, average and protonated masses, and chemical structure representation. This provides revised chemical information when viewing or using the t⁶A entry.

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]>
@poshul
poshul marked this pull request as ready for review November 14, 2026 09:59
@poshul
poshul requested review from timosachsenberg and a balanced review from Copilot November 14, 2026 09:59
@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Entry 130 in the Modomics data changes its elemental formula, average mass, protonated mass, and SMILES structure. Its other listed fields remain unchanged.

Changes: Modomics entry update

Layer / File(s) Summary
Update entry 130
share/OpenMS/CHEMISTRY/Modomics.json
Entry 130 changes to formula C15H20N6O8, average mass 412.3598, protonated mass 413.1415, and a revised SMILES structure. Other listed fields remain unchanged.

Change: Bug fix

Merge Risk: Minimal · up to 4e0a9

This corrects the t6A formula, masses and structure in the modification catalog so that mass calculations for t6A-containing oligonucleotides are right. The change is limited to catalog data and is easy to revert, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: correcting the t6A chemistry entry in the MODOMICS catalog. The raw summary and objectives confirm that the PR changes the t6A formula, masses, and SMILES in Modomics.json.…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: correcting the t6A chemistry entry in the MODOMICS catalog. The raw summary and objectives confirm that the PR changes the t6A formula, masses, and SMILES in Modomics.json. The [FIX] prefix is a tag, not a vague term, and the title is short and specific.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the t⁶A row,
New formula and masses now show.
A fresh SMILES joins the page,
The other fields stay unchanged.
I nibble, then hop through the sage.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 92c010bd-2bce-467c-a2b0-32ce1a47e016
Commits

Reviewing files that changed from the base of the PR and between 339429f and 4e0a9ce.

Files selected for processing: 1

  • share/OpenMS/CHEMISTRY/Modomics.json

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 C15H20N6O8 and 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 timosachsenberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_prot is 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: ModomicsJSONDataProvider takes the formula from formula and the monoisotopic mass from mass_monoiso, so both had to change, and both did.

  • Users of t6A in the repository: none outside the catalogs. The NucleicAcidSearchEngine TOPP 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_test with the test below passes with this PR's JSON and fails with develop's.

  • CI: build-and-test passes 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:

    1. 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_prot 413.1416, and a SMILES without the N6-methyl group. That is t6A.
      • What the other files say: Modomics.tsv and the ambiguity code m6t6A/hn6A in Custom_RNA_modifications.tsv both 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/hn6A pairs 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_monoiso 426.1499;
      • mass_avg 426.3868 (the TSV value);
      • mass_prot 427.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.

  • 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 formula against mass_monoiso would 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_test and EmpiricalFormula_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.cpp
    START_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

@poshul
poshul merged commit b634162 into OpenMS:develop Nov 14, 2026
36 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants