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.0rc2

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.0rc2
File Size Uploaded Provenance Actions
abstar-1.0.0rc2.tar.gz 514.8 kB With provenance Details for abstar-1.0.0rc2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for abstar 1.0.0rc2
File Actions
abstar-1.0.0rc2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for abstar-1.0.0rc2-cp311-abi3-win_amd64.whl
abstar-1.0.0rc2-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.0rc2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
abstar-1.0.0rc2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for abstar-1.0.0rc2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
abstar-1.0.0rc2-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for abstar-1.0.0rc2-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 29.2 MB

Release files / abstar-1.0.0rc2.tar.gz

Download URL abstar-1.0.0rc2.tar.gz
Size 514.8 kB
Tags Source
SHA-256 checksum
How to use checksums
404356de06510edd3b657ddff119dee8b8dbb09b53863f186b4291ce1c969a70
BLAKE2b-256 checksum
How to use checksums
ab85bfcf0be508d2bd7899e5d0d17d919c7657ac448a8e1d2d74e53c8392bd43
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.0rc2-cp311-abi3-win_amd64.whl

Download URL abstar-1.0.0rc2-cp311-abi3-win_amd64.whl
Size 6.9 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
bef340bf0cea0bd00954a47a7b22c67b5a46d42c4aa6d195d29c0d7e967910a8
BLAKE2b-256 checksum
How to use checksums
1351c373cf5950dcce30b6bcd1d978c144244ebd2e6bf1ca0467e7adae114a16
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.0rc2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL abstar-1.0.0rc2-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
dd69e666412d36b62ef416cf49e1e852af9fbc5482181435ff5ad6bd2e727f85
BLAKE2b-256 checksum
How to use checksums
3b4e744109fb4a25fdcee2a4dfa02d5879e5cc2d4049f5d6427a17a7ffa28f76
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.0rc2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL abstar-1.0.0rc2-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
df9914f36f1e96f2a752453617040f9cf2e58c2b2e0d2e1c0f30d87fd8bd21fb
BLAKE2b-256 checksum
How to use checksums
eebe3104dfd5fed444352e2a41ea17604260453584b789b2a24a563bb161ccc5
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.0rc2-cp311-abi3-macosx_11_0_arm64.whl

Download URL abstar-1.0.0rc2-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
87b73e5fb02b19fd8ad1988b5a15e2258d0c434a7ff5c3405aa5c48347295895
BLAKE2b-256 checksum
How to use checksums
1ab11f10f5ae964a86dd3cd77a37f7bbc82e8b7ee70cdae991e5106b708acfe2
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.0rc2

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.0rc2.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