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 runuses 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. SetABSTAR_HOMEto 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| abstar-1.0.1.tar.gz | 521.1 kB | With provenance | Details for abstar-1.0.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| abstar-1.0.1-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for abstar-1.0.1-cp311-abi3-win_amd64.whl |
| abstar-1.0.1-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.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| abstar-1.0.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ ARM64 | Details for abstar-1.0.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| abstar-1.0.1-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for abstar-1.0.1-cp311-abi3-macosx_11_0_arm64.whl |
Total release size: 29.2 MB
Release files / abstar-1.0.1.tar.gz
| Download URL | abstar-1.0.1.tar.gz |
|---|---|
| Size | 521.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84d0726574ece2b3d8c36668a0682089ffbd2f79b934b3332e9a428fd3bad03b
|
|
BLAKE2b-256 checksum How to use checksums |
654e2e13d2942bf81a69ad492a63c6c6da1edba2360ef5be553b0cf8815479e4
|
| 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 logRelease files / abstar-1.0.1-cp311-abi3-win_amd64.whl
| Download URL | abstar-1.0.1-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 6.9 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1a2e31020b1690e0593db642a0f0202138d61465caeb79746973ec8a7152182b
|
|
BLAKE2b-256 checksum How to use checksums |
6671eccb9a327f0f920072a27f7e23f6d6796a7467cea0cd9a519beb5ebd71c5
|
| 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 logRelease files / abstar-1.0.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | abstar-1.0.1-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 |
72689cc87e759331dbb15fe113af6f2dc6d3feaf9853838d41eff30d9517ddd9
|
|
BLAKE2b-256 checksum How to use checksums |
a5aab67ef0a032d7a2e7f814af5b86e543b12cb1fc487631edf6ea9cadba1858
|
| 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 logRelease files / abstar-1.0.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | abstar-1.0.1-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 |
c49e91eea9ca0cb6801fdfc957389e7ffe4fe6922da7351b827585129e1f862d
|
|
BLAKE2b-256 checksum How to use checksums |
e899f2ed1148c9111ccc3c320a65aeb6d54de6495c083f7eb4a744a9b55b23e0
|
| 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 logRelease files / abstar-1.0.1-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | abstar-1.0.1-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 |
86b873e0405dbe9e4aad72ebbcd9c2ed96457eff41d97e0398195eae9330e757
|
|
BLAKE2b-256 checksum How to use checksums |
85964fc8ecb63c7c11457dc1c829d9ccd02cb81e1f7a780ab61fd93451600cab
|
| 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 logSecurity for abstar 1.0.1
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.
Attestation for abstar-1.0.1.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 logA 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.