RawMod: Modification-Agnostic Detection of DNA Base Modifications from Nanopore Signal Pileups
Bhargav SrinivasaniD, Sabeena NazariD, Vir GandhiiD, Ernest ZhangiD, Tsvetan BachvaroffiD, MIkhail KolmogoroviD, Allen PlaceiD, Can FirtinaiD
Abstract
Summary: Identifying epigenetically modified bases (e.g., methylation) is crucial for many important applications such as discovering mechanisms of cancer development, cell differentiation, and bacterial defense. Nanopore sequencing generates electrical signals that can differentiate canonical bases from modified ones. To detect base modifications from signals, machine learning (ML) methods and statistical approaches are commonly used. These methods can either detect a specific modification type or require an additional unmodified copy of the same DNA as a control group. However, no released model detects modification types beyond those it was trained for, which makes it difficult to detect rare modification types without an unmodified control. Our goal is to accurately identify the presence of modified sites regardless of their modification type, which we define as modification-agnostic detection. To this end, we propose RawMod, a transformer-based modification-agnostic and control-free method for detecting epigenetically modified genomic positions. The key idea of RawMod is to compare the raw signals of many reads at each site with the unmodified reference sequence, using a small model that learns many modification types as a single modified class. Based on our extensive evaluations on the detection of various modification types (5mC, 5hmC, 4mC, 6mA, and 5hmU) using various genomes, RawMod achieves the highest mean AUROC across modifications compared to control-based methods and control-free modification models. A single RawMod model with 0.23M parameters detects five modification types with a mean AUROC of 0.964, against 0.799 for the best released model. When a modification type is withheld from training, RawMod still detects it (AUROC 0.91--0.98), provided another modification of the same base was seen in training. We use RawMod to map 5hmU without a control across a 7.7 Mb contig of the Amphidinium carterae genome, consistent with two published trends. Further, we show that the modification-aware embeddings from RawMod can be used to differentiate read origin (e.g., cell types, tumor/normal origin, and native/PCR-amplified DNA). We discuss how RawMod can enable further work on label-free classification of cell types using these modification-aware embeddings. Availability and Implementation: RawMod is available at https://github.com/STORMgroup/RawMod and at https://huggingface.co/STORMResearch/RawMod. We also provide the scripts to fully reproduce our results on our GitHub page and release our datasets on SquiDBase.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- NanoMod: a computational tool to detect DNA modifications using Nanopore long-read sequencing data
Qian Liu, Daniela Georgieva, … Kai Wang·BMC GenomicsPeer-reviewed·Feb 1, 2019
- De novo Identification of DNA Modifications Enabled by Genome-Guided Nanopore Signal Processing
Marcus H. Stoiber, Joshua Quick, … James B. Brown·bioRxiv·Apr 10, 2017
- Adapting Nanopore Sequencing Basecalling Models for Modification Detection via Incremental Learning and Anomaly Detection
Ziyuan Wang, Yinshan Fang, … Hongxu Ding·Nature CommunicationsPeer-reviewed·Aug 21, 2024
- DeepMP: a deep learning tool to detect DNA base modifications on Nanopore sequencing data
Jose Bonet, Mandi Chen, … Jens Lagergren·BioinformaticsPeer-reviewed·Oct 25, 2021
- Uncalled4 improves nanopore DNA and RNA modification detection via fast and accurate signal alignment
Sam Kovaka, Paul W. Hook, … Michael C. Schatz·Nature MethodsPeer-reviewed·Mar 28, 2025
- Systematic benchmarking of basecalling models for RNA modification detection with highly multiplexed nanopore sequencing
Gregor Diensthuber, Ivan Milenkovic, … Eva Maria Novoa·Nucleic Acids ResearchPeer-reviewed·Apr 7, 2026