skillfed

abnumber

AbNumber - Antibody numbering using ANARCI

abnumber v0.4.4 78.6K downloads/30d#14,426 on PyPI128
Permissive license MIT AGING released

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 abnumber

uv

uv add abnumber

poetry

poetry add abnumber

Installing 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

antibody numbering pythonCDR region identificationimmunoglobulin sequence analysisantibody sequence alignmentANARCI wrapperantibody humanizationimmunology bioinformatics
bioinformaticsantibody-engineeringimmunology

More Information Analysis packages