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
abstar run antibodies.fasta out/ --sequence-type aa   # protein sequences

FASTA and FASTQ are accepted, gzipped or not, in either orientation (reverse reads are detected per read). Protein input (--sequence-type aa, or sequence_type="aa" in Python), such as sequences from structures or patents, gets V and J calls, IMGT regions, the junction and amino-acid mutations; the nucleotide-only fields are null (abstar manual conventions). 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.1.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.1.0
File Size Uploaded Provenance Actions
abstar-1.1.0.tar.gz 544.6 kB With provenance Details for abstar-1.1.0.tar.gz

Built distributions (wheels)

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

Total release size: 29.5 MB

Release files / abstar-1.1.0.tar.gz

Download URL abstar-1.1.0.tar.gz
Size 544.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7d278e2ba224e779cde2881aaa06fb254c13cda2324ff688c20df989fd1b3cbb
BLAKE2b-256 checksum
How to use checksums
a16e4d1da39c0e6b11b327da3f71120cc85462323a75eef934e64e69b71488cd
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.1.0-cp311-abi3-win_amd64.whl

Download URL abstar-1.1.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
eacb39b5df0736d4db05baf5f16a4f67c2c6122da168309cf84ef8ab904799dc
BLAKE2b-256 checksum
How to use checksums
383263cce8d6ea57aec4993da6f2c465912f38d1cb58903a886be67be51b9ded
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.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL abstar-1.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 7.6 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1750f4e631842b635d5242fe5f75f0479ffbcdf4d4e884b793b8eadbdb36c1f7
BLAKE2b-256 checksum
How to use checksums
0ceac389f1a5c7968f5bcfef1d136deee0360a9a7edf4d06c70441bbcf3fddda
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.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL abstar-1.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 7.7 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a30027627a4808cfc81ba1901ac9a83f1daa3371e6f0c882b884ef8a0cb527c4
BLAKE2b-256 checksum
How to use checksums
942fbd2b00ed7f3878898ae093dc95d81df348ead0f30cb4d2a1514cf890f27a
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.1.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL abstar-1.1.0-cp311-abi3-macosx_11_0_arm64.whl
Size 6.7 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a7255080084a030a16688abaf41037f401c4055f37285c90554c03d17416b4f4
BLAKE2b-256 checksum
How to use checksums
093e01cc1ead2ad6c923e0878f80d0133833e2d86d8f69c743d8346e4491bda0
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.1.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.1.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.1.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