Skip to main content

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

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

Built distributions (wheels)

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

Total release size: 29.2 MB

Release files / abstar-1.0.0.tar.gz

Download URL abstar-1.0.0.tar.gz
Size 517.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b8698d5e9b7ffebc5321a15251b09f03ccd5c3e4c510a92d765828e5d9101252
BLAKE2b-256 checksum
How to use checksums
4b95926aa1a26c423fd1d7c7f15c489f0620aa6fe7f570533cf743afe018b587
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 23, 2026.

Transparency log

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

Download URL abstar-1.0.0-cp311-abi3-win_amd64.whl
Size 6.9 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
95c8a4ec6d5b133493d89f47358e92de3eecca0cb9940aae48bb1436c8485077
BLAKE2b-256 checksum
How to use checksums
7eb07f8de0696f4ee536ad0bde8bd16926191bccee844aae7edb8ed10a46fc95
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 23, 2026.

Transparency log

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

Download URL abstar-1.0.0-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
e4e206aa8763b87ab7f91ade32cc745833fd9c8581b14f724ca666d84e530eb4
BLAKE2b-256 checksum
How to use checksums
c2ca25d38c586857e6addbac3ae7f31ef47f7a933398bda7f666af958cb3bcb1
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 23, 2026.

Transparency log

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

Download URL abstar-1.0.0-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
a63109909ceae7dd0bd5bde53495b6a93f6c3dc114eaaabd76dde40b4d327481
BLAKE2b-256 checksum
How to use checksums
b27c389820e326d23e5b4b2cc0dea24626fec0c11768c09ed2c04aa56456318a
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 23, 2026.

Transparency log

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

Download URL abstar-1.0.0-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
36c71c4ff36ff9e37f35d71fba0f0a13a82d315d4e94d83045ba2a03188fcddf
BLAKE2b-256 checksum
How to use checksums
953882fa732d48a7210531068aabcfba0e9cbb46765a5599dc4fcf705d7905ed
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 23, 2026.

Transparency log

Security for abstar 1.0.0

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.0.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 23, 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

1.0.0 This release

5 release files Full provenance

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