abnumber
AbNumber - Antibody numbering using ANARCI
What it is and what it does
AbNumber wraps ANARCI to provide a Python-friendly interface for antibody sequence analysis. It lets you load an antibody sequence into a Chain object, then identify CDR regions, access positions using standard antibody numbering schemes (IMGT, Chothia), slice and iterate over sequences by position, and align sequences to each other or to human germlines. The package handles the complexity of ANARCI's command-line interface and sequence alignment logic, exposing it through object methods like chain.cdr3_seq, chain.regions, and chain.align().
The core use case is immunology and antibody engineering workflows where you need to work with antibody sequences in their standard numbering systems rather than raw coordinates. It depends on biopython for sequence handling, pandas for data manipulation, and anarcii for the underlying numbering and alignment engine. The package requires Python 3.6 or later and runs only on Unix and macOS due to HMMER dependencies.
Use it for:
- Extract and analyze CDR regions from antibody sequences for epitope prediction or humanization design.
- Align antibody sequences to nearest human germlines to assess how close a candidate is to natural repertoire.
- Graft CDRs from one antibody onto a human germline framework for humanization workflows.
- Index and slice antibody sequences by standard numbering (e.g., chain['H2':'H5']) for position-specific analysis.
- Batch-process antibody libraries to identify conserved regions or perform comparative sequence analysis.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
AbNumber provides Python APIs to number and align antibody sequences using ANARCI, enabling CDR region identification, sequence indexing by antibody numbering schemes, and alignment to human germlines.
Yes, if you work with antibody sequences and need standard numbering and alignment. The low install friction, permissive license, and clean API make it straightforward to adopt. However, note the aging maintenance status (452 days since last release) and Unix/macOS-only requirement. For production immunology pipelines, verify that anarcii remains stable and that the package's dependencies are current before committing to it.
Install
abnumber on PyPI
pip
pip install abnumberuv
uv add abnumberpoetry
poetry add abnumberInstalling abnumber
Before you install
Low friction install as a pure Python wheel. Maintenance status is aging—last release was 452 days ago—but the repository remains active and unarchived with 128 stars. Note: Windows is not supported due to HMMER dependency; Unix and macOS only.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions. No licensing friction for most use cases.
Quickstart
from abnumber import Chain
seq = 'QVQLQQSGAELARPGASVKMSCKASGYTFTRYTMHWVKQRPGQGLEWIGYINPSRGYTNYNQKFKDKATLTTDKSSSTAYMQLSSLTSEDSAVYYCARYYDDHYCLDYWGQGTTLTVSSAKTTAPSVYPLA'
chain = Chain(seq, scheme='imgt')
print(chain.cdr3_seq) # ARYYDDHYCLDY
Windows is not supported; HMMER dependency requires Unix or macOS.
Verify before relying
- Whether anarcii (the runtime dependency) is a maintained fork or wrapper of ANARCI, and its current stability status.
- Performance characteristics when processing large antibody sequence batches or multiple alignments.
- Whether the package is actively maintained or in maintenance-only mode given the 452-day gap since last release.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — biopython, pandas, anarcii |
| Maintenance | aging — 452 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 78,580/month — #14,426 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: abnumber-0.4.4-py3-none-any.whl
Keywords: antibody numbering, immunoglobulin, ab, ANARCI, chain, imgt, chothia
Tags
More Information Analysis packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
snowflake-snowpark-pythonSnowpark Python provides APIs to query and…
permissive · top 1,000 on PyPI
antibertyAntiBERTy is a transformer language model…
unclear · top 15,000 on PyPI
pipebioA Python SDK for the PipeBio cloud platform…
permissive · top 15,000 on PyPI
pyhmmerPyHMMER provides Python bindings to HMMER3, a…
permissive · top 5,000 on PyPI
bx-pythonbx-python provides Python classes and utilities…
permissive · top 15,000 on PyPI
biotiteBiotite provides a unified Python library for…
permissive · top 5,000 on PyPI
logomakerLogomaker creates customized sequence…
permissive · top 15,000 on PyPI
pydeseq2PyDESeq2 performs differential expression…
permissive · top 15,000 on PyPI
mhctoolsUnified Python interface to multiple MHC…
permissive · top 15,000 on PyPI
biocommons.seqrepoSeqRepo stores and retrieves biological…
permissive · top 15,000 on PyPI
epiweeksCalculates epidemiological weeks using US CDC…
permissive · top 15,000 on PyPI