Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.05.11.724222

A Conditional Random Field approach for de novo reconstruction of bacterial haplotypes from a de Bruijn graph representation

Abstract

BackgroundDetecting distinct bacterial strains in a mixed sample is an important, yet less well-developed aspect of metagenomic research. Several methods exist that successfully retrieve a de novo reconstruction of viral strains. However, the reconstruction of bacterial haplotypes poses its own distinct challenges, and methods that successfully reconstruct full genome-length bacterial strains de novo are scarce. Here, we develop HaploDetox, a method for de novo bacterial haplotype reconstruction from short reads. We use a de Bruijn graph representation of the reads in which nodes correspond with k-mers from the read set and arcs represent overlap between two nodes sequences. Our aim is to accurately assign labels to each node and arc in the graph to reveal the presence or absence of their corresponding sequence in individual strains. ResultsUsing a negative binomial mixture model, we model the relationship between the read coverage of nodes and arcs in the graph and their presence in a strain. We achieve improved labelling accuracy by including contextual information from neighbouring nodes and arcs with a Conditional Random Field. These labels are used to extract strain-specific de Bruijn graphs from the original graph. Additionally, we allow users to assess the number of strains present in the dataset based on model selection criteria. We evaluate our node/arc labelling accuracy on simulated datasets and in silico mixes of real datasets containing different numbers of strains, as well as on in vitro mixed real datasets. Existing de novo haplotype reconstruction methods present their reconstruction as strain-specific sets of SNPs. We demonstrate that HaploDetox assigns strain-specific SNPs with a higher recall and similar precision than existing methods, by aligning the unitigs from strain-specific graphs to a reference genome. ConclusionsWe achieve improved strain-specific SNP phasing accuracy as compared to existing methods for de novo bacterial haplotype reconstruction. Additionally, HaploDetox is not limited to the determination of strain-specific SNPs, and other types of variant calls can be obtained through reference alignment. Finally, strain-specific de Bruijn graphs are an important first step towards full genome-length bacterial haplotype-aware assembly.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Steyaert, A., Van Hecke, M., Marchal, K., Fostier, J.. 2026-05-12. A Conditional Random Field approach for de novo reconstruction of bacterial haplotypes from a de Bruijn graph representation. https://doi.org/10.64898/2026.05.11.724222

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Targeted finetuning enables co-folding models to learn ligand-induced protein conformational states

Advances in protein structure prediction have enabled all-atom protein-ligand co-folding models that predict bound conformations directly from sequence and small-molecule structure. However, these models often fail to generalize to novel binding sites or alternative protein conformational states, limiting their utility for chemical biology and drug discovery. Here we show this limitation reflects training data bias rather than architectural constraints and can be overcome through targeted finetuning. Using ten previously unseen X-ray structures of Werner (WRN) helicase from a drug discovery program, we finetune Boltz-1 to learn both an allosteric binding site and a large conformational change locking the enzyme in an inactive state, while preserving accuracy on the ATP-bound state. The finetuned model generalizes to different chemical series and transfers the conformational logic across RecQ-family helicases in a binding-site sequence-dependent manner. This approach provides a blueprint for adapting foundation models as new structural and mechanistic data emerge, enabling co-folding networks to capture ligand-induced conformational switches and binding poses absent from their training data but central to biological regulation and therapeutic intervention.

bioinformatics↗

Benchmarking single-cell foundation models for aging biology

Single cell foundation models (scFMs) provide representations of cellular states, but their utility across biological questions in aging research remains unclear. We established a benchmark of cellular representations for aging research, evaluating ten general-purpose scFMs, three aging-specific models and conventional methods across five biological questions using more than 2.5 million single cell transcriptomes. Using frozen pretrained representations, Geneformer performed best among scFMs for chronological age prediction and age pseudotime concordance, although 2,000 highly variable genes achieved higher mean performance. Several scFMs captured positive molecular age shifts across three disease contexts, consistent with reported aging-associated changes. SCimilarity performed well for rare cellular state identification across out-of-distribution datasets, exceeding aging specific models and conventional baselines. At the gene level, scGPT showed the highest recovery of reference TF target interactions, including aging-related regulatory hubs. Overall, scFMs supported diverse aging analyses, but performance depended on the biological question, highlighting their utility for rare cellular state identification and regulatory analysis.

bioinformatics↗

CryoMV: Structure-Prior-Guided Modeling and Real-Particle Validation of Continuous Conformational Transitions in Cryo-EM

Continuous protein conformations are essential for understanding fundamental biological processes and supporting drug discovery. Although cryo-EM can resolve individual states at high resolution, recovering continuous heterogeneity from 2D particle images remains challenging. High noise, motion blur, and limited structural priors make it difficult to accurately generate and validate high-resolution continuous conformations using raw particle data. Here, we introduce cryoMV, a framework that integrates structure-prior-guided modeling with real-particle validation for continuous conformational transitions. CryoMV uses reference density maps to establish structural anchors and motion priors, models candidate transition paths between selected conformations, and transfers the learned representation to raw 2D cryo-EM particle images. Each candidate conformation is subsequently evaluated using the estimated particle poses and contrast transfer functions. Supported conformations are reconstructed through raw particle back-projection and assessed using canonical half-maps and Fourier shell correlation. On EMPIAR-10516 and EMPIAR-10345, cryoMV achieves excellent performance in terms of robustness, verifiability, and reconstruction resolution. By incorporating structure-prior modeling and evidence from the raw particles, cryoMV offers an explicit mechanism for assessing whether generated conformations are supported by experimental data and provides a practical approach to reducing model-induced artifacts in continuous cryo-EM heterogeneity analysis.

bioinformatics↗