Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

abstar

abstar annotates antibody and T-cell receptor sequences. For each read it calls V, D, J and constant-region alleles (with ties), finds the junction and the IMGT regions, and reports mutations, as AIRR Rearrangement TSV or Parquet. The annotator is written in Rust; the command line and the Python API are a thin Python layer over it.

Each topic below is covered in full by the built-in manual, abstar manual.

Install

pip install abstar

Python 3.11 or later. Wheels are built for Linux (x86_64 and aarch64), macOS (Apple silicon) and Windows (x64); they include the germline databases, so there is nothing else to install and no network access at run time. On other platforms pip builds from source, which needs a Rust toolchain.

On a cluster (HPC)

No root access, compiler or external tools are needed:

module load python/3.11        # or any Python >= 3.11 (conda, micromamba, uv)
python -m venv ~/venvs/abstar
~/venvs/abstar/bin/pip install abstar
  • The Linux wheels need glibc 2.17 or later, which covers CentOS/RHEL 7 and newer.
  • abstar run uses every core it is allowed. Under a scheduler, pass the allocation explicitly, e.g. --threads $SLURM_CPUS_PER_TASK.
  • On CPUs without AVX2 (roughly pre-2013), abstar switches to a slower aligner by itself. If polars warns about missing CPU features, install its compatibility build: pip install "polars[rtcompat]".
  • User-built germline databases go in ~/.abstar. Set ABSTAR_HOME to put them somewhere else, such as project storage when home quotas are small.

Annotate

abstar run reads.fasta out/                    # out/reads.tsv and out/run.json
abstar run fastqs/ out/ --format parquet       # a directory, searched recursively
abstar run reads.fastq.gz > reads.tsv          # no OUTPUT_DIR: TSV on stdout
abstar run reads.fasta out/ -g c57bl6 --locus IGH
abstar run --seq CAGGTGCAGCTGGTGCAGTCTGGG       # one sequence

FASTA and FASTQ are accepted, gzipped or not, in either orientation (reverse reads are detected per read). abstar run --help lists every option.

From Python:

import abstar

df = abstar.run("reads.fasta")                 # a polars DataFrame
df = abstar.run([("id1", seq1), ("id2", seq2)])  # or a list of strings
summary = abstar.run("fastqs/", "out/", formats=["airr", "parquet"])

Every record gets a row. One that can't be annotated is unassigned, with a failure_reason; abstar manual fields defines every column.

Germline databases

Built in: human (IG and TR), c57bl6, balbc, macaque and human+c57bl6 (for humanized mice). Every V allele must be IMGT-gapped.

abstar germline list
abstar germline info human
abstar germline build donor.toml               # e.g. human restricted to a donor's genotype
abstar run reads.fasta out/ -g donor

abstar manual germline describes the recipe format.

Synthetic reads

abstar generate simulates reads with known truth for benchmarking, and abstar.grade() scores calls against it. See abstar manual generate.

The manual

abstar manual              # everything, as Markdown
abstar manual examples     # common invocations
abstar manual migration    # moving from abstar 0.x
abstar manual errors       # error codes and exit codes

The documentation site built from docs/ has the same content.

Development

Inside a virtualenv with a Rust toolchain:

pip install maturin
maturin develop --release --extras test
cargo test --workspace --release
python -m pytest -q

AGENTS.md covers the repository layout and conventions, and design decisions are recorded in python/abstar/decisions/.

Metadata

Release files for abstar 1.0.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for abstar 1.0.0rc1
File Size Uploaded Provenance Actions
abstar-1.0.0rc1.tar.gz 511.8 kB With provenance Details for abstar-1.0.0rc1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for abstar 1.0.0rc1
File Actions
abstar-1.0.0rc1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for abstar-1.0.0rc1-cp311-abi3-win_amd64.whl
abstar-1.0.0rc1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for abstar-1.0.0rc1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
abstar-1.0.0rc1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for abstar-1.0.0rc1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
abstar-1.0.0rc1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for abstar-1.0.0rc1-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 29.2 MB

Release files / abstar-1.0.0rc1.tar.gz

Download URL abstar-1.0.0rc1.tar.gz
Size 511.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7c30e3c1bcbd344f76a8aca07d002b7ecf3818b43cd0269c323cf9eae5e5c50f
BLAKE2b-256 checksum
How to use checksums
7241b5771f801248b867fad971871abd3f3d3e502f2fa0c4591171ec1eccb58b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / abstar-1.0.0rc1-cp311-abi3-win_amd64.whl

Download URL abstar-1.0.0rc1-cp311-abi3-win_amd64.whl
Size 6.9 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
38fd15665d76bfcd0599583f1f2ed1242713db1ecda8dd46c2c69b3193bbe758
BLAKE2b-256 checksum
How to use checksums
caaeed15f9b1d23ae416f82d9a1c1813cd8753d91d2cda60518d1ed03a5af36c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / abstar-1.0.0rc1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL abstar-1.0.0rc1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 7.5 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
feff347f48d34b5985f383d7f7b6434c4c037820a913e5486ccb7ab5e093f7ef
BLAKE2b-256 checksum
How to use checksums
ba5aacc8d00a6302bfbe264dbe5406e9391be010db2dda58e7b91a134f7222f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / abstar-1.0.0rc1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL abstar-1.0.0rc1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 7.6 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
5ce414572bf13d1299734387a11258fc404aa1cdefde70d90b06470af1f0d303
BLAKE2b-256 checksum
How to use checksums
0302850a2ea278c79b87a41c72e1c1c6b9b1c40b0250f5d3c16700a4e862c874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / abstar-1.0.0rc1-cp311-abi3-macosx_11_0_arm64.whl

Download URL abstar-1.0.0rc1-cp311-abi3-macosx_11_0_arm64.whl
Size 6.6 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4f04a5fa207815ac145ede4039ff7668af28770e9c99cfb2e9e6202f8af58364
BLAKE2b-256 checksum
How to use checksums
5d9899e3096b016f98b661bcc4c587d4d1baa17c8c39ca7577d1e0d01a6400b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for abstar 1.0.0rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for abstar-1.0.0rc1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page