Search bioRxiv⌕ Search

bioRxiv · 10.1101/2025.04.20.649691

Dynamic Contrastive Learning with Pretrained Deep Language Model Enhances Metagenome Binning for Contigs

Abstract

Metagenomic binning is crucial for reconstructing microbial genomes from metagenomic sequencing samples. However, existing tools struggle in complex communities where short, low-abundance contigs predominate, thereby limiting the recovery of complete metagenome-assembled genomes (MAGs) and the identification of novel functions. Here, we introduce CompleteBin, a Transformer-based framework that integrates contig sequence context, pre-trained taxonomic embeddings from a genome language model, and dynamic contrastive learning to bin short contigs robustly. Across CAMI II datasets, CompleteBin increased near-complete MAG recovery by 38.5% over leading methods like COMEBin. Across diverse real-world datasets (marine, freshwater, plant-associated, cold seep sediment, and human gut), it achieved a 57.4% improvement on average. Applying CompleteBin to six cold seep sediment samples uncovered 129 strain-level genome bins across 30 phyla, including 13 phyla undetected by other tools, and taxonomically assigned 90,405 genes (32.1% of total), revealing previously unknown species in nitrogen and sulfur cycling. CompleteBin unlocks microbial dark matter in diverse environments, advancing our understanding of microbial ecology and biogeochemical processes.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zou, B., Zhang, Z., Tao, R., Gu, N., Zhang, L.. 2025-04-24. Dynamic Contrastive Learning with Pretrained Deep Language Model Enhances Metagenome Binning for Contigs. https://doi.org/10.1101/2025.04.20.649691

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

KEEP EXPLORING

Related preprints

Integrating Genomic Annotations and Traits Dependencies for single-nucleotide polymorphisms Prioritization with Causal Concept Bottleneck Models

Predicting common traits from single-nucleotide polymorphism (SNPs) data is challenging due to polygenicity, small effect sizes, and the presence of potentially mediated or spurious cross-trait associations. We propose a modeling approach that combines genomic annotations with known cross-trait relations by leveraging Causally Reliable Concept Bottleneck Models (C2BM), a deep learning architecture that factors the joint trait distribution over a graph of interpretable concepts. This design allows trait predictions to leverage information from other observed traits in addition to genomic inputs. Furthermore, the interpretable architecture of the model enables us to investigate how specific trait-trait relationships influence SNP-level predictions. We evaluate the approach on a multi-trait GWAS dataset covering five traits and show that C2BM improves predictions when ground-truth labels for related traits are available. Moreover, by analyzing variations in how trait-trait relationships influence predictions, we postulate that such differences may reflect the presence or absence of shared genetic mechanisms or indirect effects. Accepted at the CIBB 2026 conference (https://cibb2026.teralab.ai/)

bioinformatics↗

From Prompt to Pipeline: A Comparative Evaluation of Large Language Model Coding Agents for Reproducible Bioinformatics Pipeline Construction

Agentic coding systems are increasingly presented as a way to reduce the engineering burden of scientific software development. Bioinformatics is a strong test case for this claim because useful pipelines must combine domain-specific analysis choices, command-line software, sample metadata, workflow orchestration, container or HPC execution, and interpretable quality-control reporting. We evaluated three agentic systems - Biomni, Claude Code, and Codex - on the same task: constructing a Nextflow DSL2 pipeline for paired-end CUT&Tag data that included read QC, trimming, alignment, filtering, duplicate removal, signal track generation, per-sample and group-level peak calling, control-aware group merging, annotation, FRiP calculation, deepTools visualizations, and final MultiQC reporting. Each system received the same detailed CRAFT-style prompt and was assessed against a hand-coded reference pipeline developed by the authors. All three systems produced pipeline implementations that appeared plausible at the level of documentation and file structure, but none fully satisfied the requested analysis. The most consequential failure was shared: the agent-generated pipelines performed some form of group-level merging but did not produce the requested merged-group reporting outputs. Sample-level MultiQC reports also disagreed with the reference report. Codex was closest to the reference for primary mapped-read counts, although its total-read accounting and report structure still differed. Claude Code produced the broadest final report, but its mapping summary mixed stages and therefore could not be treated as numerically correct. Biomni produced the strongest subjective documentation, but its read-count agreement with the reference report was poor and several failures required substantial Nextflow expertise to diagnose. These results suggest that current coding agents can accelerate scaffolding, documentation, and routine implementation, but they do not eliminate the need for expert review in bioinformatics workflow construction. For complex sequencing workflows, prompts must specify not only the biological intent, but also the exact stage semantics, acceptance tests, metadata contracts, expected report sections, resource propagation rules, and failure criteria needed to distinguish a plausible pipeline from a correct one.

bioinformatics↗

Cophylogeny simulators are not interchangeable: similarities, differences and structural biases in synthetic host-symbiont

Synthetic data are becoming increasingly important for computational studies of cophylogeny, including machine learning inference, benchmarking, and method testing. Several generators have been proposed to produce such data, but each relies on different assumptions about host-symbiont coevolution. These assumptions are often implicit and rarely examined, even though results can depend strongly on the synthetic model being used. In this article, we present a systematic structural analysis of representative cophylogeny generators under controlled scenarios. The goal is to make their assumptions explicit and to understand how these choices shape the synthetic data they produce as well as the conclusions that may be drawn from them.

bioinformatics↗