SemiBin is a metagenomic binning tool (MAG builder). It is based on deep contrastive learning to incorporate background information (from reference genomes).
It achieves better results than other tools across a range of microbial habitats (both host-associated and environmental habitats).
SemiBin2 introduced self-supervised contrastive learning (removing the need for the more expensive semi-supervised step) and added support for binning long-read assemblies, making it both faster and more accurate than the original version.
The current version is SemiBin 2.6.1 (released November 15, 2026), a
bugfix release for long-read binning. bin_long ran the ORF finder and HMMER
on a temporary FASTA file that had not yet been fully written to disk, so
marker gene detection silently used an incomplete set of contigs on most
filesystems; on GPFS-style parallel filesystems (common on HPC clusters), or
with very small inputs, the run aborted with a contigs.faa is empty or
misformatted error. If you use bin_long (or single_easy_bin/multi_easy_bin
with --sequencing-type long_read or hybrid), upgrading is recommended.
Thanks to Matthias Bernt for diagnosing
and fixing this (PR #230).
There are no other changes from 2.6.0.
SemiBin 2.6.0 (released October 14, 2026) raised the minimum requirements to Python 3.11, pandas 3, and PyTorch 2.4 (pixi and conda handle this for you; if you are stuck on Python 3.10 or pandas 2, stay on SemiBin 2.5.0).
It added shell tab completion of subcommands and options. To enable it in bash
or zsh, add this to your ~/.bashrc (or ~/.zshrc):
eval "$(register-python-argcomplete SemiBin2)"
Static completion scripts for bash, zsh, fish, tcsh, and PowerShell can also be generated, see the installation docs.
Most of its bug fixes make SemiBin stop early with a clear message where it
previously failed late with an obscure error: multi_easy_bin now checks up
front that every sample has at least one contig long enough for the must-link
threshold, bin_long validates its arguments like bin does, and failures of
prodigal, bedtools, or hmmsearch now report the exit status, the input, and
the tool's own error output. Loading models saved by SemiBin2 versions before
2.2.0 works again with PyTorch 2.6 or newer, and crashes on small or
low-quality assemblies where no marker genes pass the filters are fixed. See
the ChangeLog for the
full list of changes.
SemiBin is available on bioconda and PyPI. We recommend installing it with pixi, which can even run it without installing:
pixi exec -c bioconda -c conda-forge -s semibin SemiBin2
Alternatively, with conda:
conda install -c conda-forge -c bioconda semibin
Copyright (c) 2018–2026. Luis Pedro Coelho and other group members. All rights reserved.