Search arXiv⌕ Search

arXiv · 2611.41096

Adaptive BML

Abstract

Maximal exact matches (MEMs) between a pattern and a text are widely used in bioinformatics, and for tasks such as classifying reads it can be enough to know the few longest MEMs of each read. Boyer--Moore--Li (BML) finds all the MEMs of length at least a given threshold $L$ while ignoring much of the pattern, and $k$-mer based breaking (KeBaB) lets BML ignore even more, but both need $L$ to be chosen in advance. We describe adaptive BML (ABML), which is given a parameter $τ$ instead, raises $L$ as it runs and returns $τ$ longest MEMs. ABML combines naturally with KeBaB and the early-stopping rule proposed with it, which had not been implemented. ABML is simple: our implementation is a small patch to Li's {\tt ropebwt3}. On about 580,000 Oxford Nanopore reads and an index of about 5,900 bacterial genomes, finding 5 longest MEMs of each read with KeBaB and ABML took 11 minutes on one thread of an old desktop, against 1.9 hours for finding all the MEMs of length at least 40 with BML and 8.0 hours with forward--backward.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Travis Gagie. 2026-11-30. Adaptive BML. https://searcharxiv.org/abs/2611.41096

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Inter-Model Semantic Hub: Training-Free Latent Transfer from a DNA Model into Frozen Language Models

The semantic hub hypothesis holds that a language model shares one internal representation across languages and modalities; the Platonic representation hypothesis, that the representations of different models converge. We extend them: latent-level information can be transferred into a language model's hub from another model of another modality, with neither model trained. We test this between a DNA model and language models that have only read text. A single linear map, fitted in closed form, carries the DNA model's latent representation of a gene into the language model's own latent representation of that gene's name and description; written into the language model's hidden states, it lets the model answer questions about genes it sees only as DNA. In a single pre-registered test on four language models, accuracy on five-option questions about held-out genes rises from chance (20%) to 37-46%, while shuffled DNA and every other control stay at chance, and the transfer is comparable to a trained connector. A second map of the same kind, fitted on text alone, carries the transferred information on from one language model to another at a cost below 1%. What crosses over is the gene's identity, after which the language model answers from what it already knows; the models cannot read the same DNA as text. Exploratory checks show that the transfer follows the DNA string rather than the protein, reaches yeast, plant and bacterial genes with no human relative, and across modalities needs more than the rotation that suffices between two language models.

q-bio.GN↗

GPA: Generative Population Annealing for Test-Time Sequence Design with Pretrained Generative Models

Oracle-guided biological sequence design must improve predicted function without moving outside the sequence distribution where the oracle is trustworthy. We introduce Generative Population Annealing (GPA), a test-time sampler for sequence design with a frozen generator and frozen oracle. GPA uses established annealed sequential Monte Carlo machinery in an outer loop over completed sequences. Effective sample size determines the reward increment, after which sequences are reweighted, systematically resampled, and mutated through a model-specific operation supplied by the frozen generator. The terminal population is retained for downstream selection. A reward-tilted prior provides the theoretical reference; practical variants modify the proposal or objective to trade activity, specificity, fidelity, and diversity. Across enhancer and promoter benchmarks, GPA scales to thousands of sequences and is competitive with inference-time samplers, gradient-based editors, tree-search diffusion, and reward-fine-tuned generators. The same inference loop is evaluated with masked discrete-diffusion and autoregressive DNA generators. Within a fixed inference configuration, varying the terminal reward temperature produces different activity-fidelity operating points without reward-specific generator fine-tuning. We characterize this trade-off together with the contributions of population search and downstream selection. Specialized baselines retain higher raw activity, accessibility, or diversity at their own operating points. Cross-oracle evaluation tests transfer to a held-out predictor, and a sequence-level audit finds shorter homopolymer runs than Ctrl-DNA in the HepG2 design pools (5.1 bp mean maximum run versus 20.9 bp). All validation remains computational.

q-bio.GN↗

Large Language Model Agents for Evidence Based Genetic Disease Severity Classification

Classifying the severity of genetic conditions is subjective and slow, and screening panels vary widely in gene content. We built an artificial intelligence agent that retrieves PubMed abstracts, applies the severity tiers and quality-of-life criteria of professional screening guidelines, and cites a source for every claim, which a separate step checks. It classified 10652 Human Phenotype Ontology terms. On 898 expertlabelled phenotypes, the agent assigned the correct category to 90.4% (95% CI 88.4 - 92.3%), against 73.2% for the same model without retrieved literature. Across tiers, 83.2% to 91.5% of its claims rested on direct evidence or a valid inference. Of 4531 genes, 79.0% had a Severe or Profound condition, against 90.2% of genes on two carrier screening lists and 92.9% of genes linked to fetal or neonatal death. With retrieved literature, an AI agent can apply severity frameworks in close agreement with experts, and its cited evidence gives a transparent basis for choosing screening genes.

q-bio.GN↗