NMDetective-B+
NMDetective-B+ is an interpretable, rule-based predictor of nonsense-mediated mRNA decay (NMD) efficiency for premature termination codons (PTCs). It extends the NMDetective-B decision tree: each PTC is routed to one of five rules, and within the start-proximal, long-exon and 55-nt-boundary rules the prediction changes smoothly with position instead of being a constant leaf.
It uses only the PTC's position in the transcript, not the surrounding sequence. For sequence-aware predictions, see NMDetective-AI.
- Code: https://github.com/Vejni/NMDetectiveAI
- Paper: Veiner et al., Quantitative prediction of nonsense-mediated mRNA decay across human genes by genomic language model and large-scale mutational scanning, bioRxiv 2026 (preprint)
Rules
A PTC is routed by the first rule that applies:
| Rule | Condition | Prediction |
|---|---|---|
last_exon_mean |
PTC in the last exon | constant −0.50 |
start_sigmoid |
≤ 250 nt from the start codon | decreasing sigmoid in distance to start (midpoint ≈ 141 nt) |
long_exon_surface |
PTC exon > 407 nt | linear surface in log excess exon length and relative position in the exon |
ejc_sigmoid |
≤ 100 nt upstream of the last exon–exon junction | increasing sigmoid in distance to the junction (midpoint ≈ 55 nt) |
baseline_mean |
otherwise | constant +0.51 |
All fitted parameters are in NMDetectiveBPlus.json.
Output scale
Scores use the same scale as NMDetective-AI: allele-specific NMD efficiency rescaled so that canonical NMD-triggering PTCs average +0.5 and last-exon PTCs average −0.5.
Files
| File | Contents |
|---|---|
NMDetectiveBPlus.json |
routing thresholds, leaf means, sigmoid and surface coefficients, training leaf counts |
Usage
from NMD.modeling.predict_variant import VariantPredictor
predictor = VariantPredictor(models=["b-plus"], b_plus_path="hf://Vejni/NMDetective-BPlus")
predictor.predict("TP53:c.1024C>T")
python main.py predict variant TP53:c.1024C>T -m b-plus --b-plus-path hf://Vejni/NMDetective-BPlus
Running B+ alone needs no GPU and does not download Orthrus. The model class is
NMD.modeling.models.NMDetectiveBPlus (NMDetectiveBPlus.load(path)).
Features
NMDetectiveBPlus.predict takes a table with these columns (positions are in the
spliced mRNA of the GENCODE transcript, measured from the first base of the PTC codon):
| Column | Meaning |
|---|---|
InLastExon |
PTC lies in the last exon |
gencode_v26_distance_from_translation_start_nt |
nt from the start codon to the PTC |
gencode_v26_containing_transcript_exon_length_nt |
length of the PTC's exon |
gencode_v26_distance_to_exon_5prime_end_nt |
nt from the exon's 5′ end to the PTC |
gencode_v26_distance_to_final_exon_exon_junction_nt |
last coding exon–exon junction (CDS coordinate) minus the 1-based PTC CDS position |
gencode_v26_downstream_coding_junction_count |
number of coding exon–exon junctions downstream of the PTC |
Training data
Fitted on 13,160 TCGA somatic and germline PTCs with allele-specific NMD efficiency estimates. Chromosomes 1 and 17 were held out for validation, and GTEx was used as an independent test set.
Limitations
- Ignores sequence context such as the stop codon identity, flanking codons and downstream reinitiation, which NMDetective-AI captures.
- Same scope as NMDetective-AI: PTCs in protein-coding transcripts, GRCh38 coordinates.
- Research use only.
Citation
@article{veiner2026nmdetectiveai,
title = {Quantitative prediction of nonsense-mediated mRNA decay across human genes by genomic language model and large-scale mutational scanning},
author = {Veiner, Marcell and Toledano, I. and Palou-Marquez, G. and Lehner, B. and Supek, Fran},
journal = {bioRxiv},
year = {2026},
doi = {10.64898/2026.03.24.714003},
url = {https://www.biorxiv.org/content/10.64898/2026.03.24.714003v1}
}