From spectrum to structure: Identifying molecules with Mass Spec Skills for Google Antigravity
Captured source
source ↗Identifying Molecules with Mass Spec Skills for Antigravity — Google DeepMind Skip to main content
November 25, 2026 Science From spectrum to structure: Identifying molecules with Mass Spec Skills for Google Antigravity Robert Brunck, Stefan Ganscha, Swaroop Guntupalli, Dariusz Lasecki, Gabriella Marfani, Jack Mason, Hussain Masoom, Rose Mirshafian, Eliseo Papa and Zoi Tsangalidou Explore Science on Google Antigravity
Share
Built in collaboration with analytical chemists and using community-developed tools, Mass Spec Skills empowers scientists using Google Antigravity to interpret tandem mass spectra, lay out chemical evidence, and match frontier-level retrieval accuracy even with a lightweight model. Every sample of blood, soil or plant tissue contains a vast array of small molecules, such as nutrients, hormones, drugs and their breakdown products, pollutants, or bioactive compounds with therapeutic potential. A modern mass spectrometer can detect tens of thousands of these molecular signals in a single drop of sample extract, measuring the masses of charged molecules and, in tandem mass spectrometry (MS/MS), the fragments they break into. These measurements, however, do not directly reveal the molecular structure. Researchers cannot immediately tell which compound produced a signal and relate it to its biological role or downstream use cases. To fully map the diversity of small molecules, which remains largely uncharted, researchers need ways to translate mass spectra to molecular structures at scale. The standard approach is to match each spectrum against reference spectra from previously measured molecules. Yet even after a decade of expanding reference libraries, spectral searches annotate on average only about 5% of measured spectra, and 10% for human samples; the rest has been called the "dark matter" of mass spectrometry. Many of the molecules producing these unannotated signals are already listed in public chemical databases, but their spectra have not been recorded, so there is no reference spectrum to compare against. Elucidating them instead requires inferring the structure directly from the observed fragment ions. Analytical chemists have a well-tested, step-by-step workflow for narrowing down candidate structures from tandem (MS/MS) spectra: check spectral reference libraries, find the molecular formula and retrieve candidate structures from chemical databases, and then test every candidate against observed fragment peaks. The tools for each step exist and are openly available, but running the full workflow would take a domain expert a significant amount of time for every single spectrum. Because a single study can produce thousands of spectra, manual analysis cannot keep up, leaving most of these signals unannotated. Today, we are sharing Mass Spec Skills for Google Antigravity , a suite of domain skills that pair Gemini's chemical reasoning with the ability to run established mass spectrometry tools and query public chemical databases on the user's behalf to fulfil their request. Antigravity runs these skills, combines their results, and reasons about the chemistry, laying out the evidence for a chemist to review. For molecules that are already catalogued in a database, identification is much faster. For undiscovered molecules, the agent still helps: it narrows down the formula and the parts of the structure supported by the fragments to guide full structure elucidation. A language model cannot do this on its own, since matching fragments to a structure takes precise mass calculations, searches across databases of millions of compounds, and simulations of how bonds break. Pairing Gemini’s reasoning with dedicated chemistry tools brings those steps into one workflow.
Antigravity and the Mass Spec Skills have the potential to transform our natural product-based drug discovery workflows by substantially accelerating the identification of bioactive compounds from complex plant extracts. Their remarkable accuracy in predicting even highly complex molecular structures (>90% in most of our evaluations), coupled with detailed interpretation of MS/MS fragmentation patterns, could significantly reduce the time required for compound annotation and enable us to prioritise promising bioactive candidates more rapidly and confidently.
Dr Phanankosi Moyo University of Pretoria
Figure 1. How a molecule is identified from its tandem mass spectrum: prepare the signal, search reference libraries, deduce the formula and rank candidate structures, then cross-check and refine. Each step is carried out by our Mass Spec Skills built on established, openly available tools.
Researchers can describe their task and any instrument-specific tolerances in plain language without having to configure each underlying tool. The agent selects and chains the relevant skills, lowering the technical barrier to entry for scientists less familiar with computational tools. From a single prompt, the agent can take an unannotated tandem mass spectrum all the way to a proposed chemical structure and an auditable report (Figure 2).
Figure 2. The agent preprocesses the raw recording, identifies the molecular formula C 20 H 21 ClN 6 O, ranks 845 PubChem isomers against simulated fragments and neutral losses, and summarises the evidence alongside the top candidate structure. It also compiles a detailed report mapping predicted fragment substructures onto 14 of the 19 signal peaks (97.7% of summed fragment intensity).
Each stage of that workflow can also be run on its own for smaller everyday tasks, from cleaning up a noisy recording to annotating peaks or comparing candidate isomers:
Slide 1 of 6
Spotting the precursor ion and removing baseline noise: the agent converts the negative-mode precursor peak at m/z 395.1387 ([M−H]−) into a neutral molecular mass of 396.1459 Da. Using matchms with configurable intensity thresholds, it strips out over 1,700 low-intensity background noise spikes from the raw recording, leaving a clean spectrum of fragment signals ready for structural analysis.
Checking public spectral libraries for known compounds: the agent queries experimental MS/MS reference libraries ( GNPS and MoNA ) using user-specified or instrument-matched mass tolerances, scoring de-noised fragment peaks by cosine similarity. In this example, the search returns no high-confidence library match, prompting the agent to fall back to formula prediction and chemical database search.
Pinning down the...
Excerpt shown — open the source for the full document.
Notability
notability 6.0/10DeepMind blog on AI for mass spec molecule ID