Skip to main content
Pre-release

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

immundapter

immundapter calculates tcrdist3 distances and clusters from Polars receptor tables on Python 3.14 or later.

python -m pip install .

On Apple Silicon, the Parasail dependency builds from source. Install Xcode Command Line Tools and autoconf, automake, and libtool if the build tools are missing.

import polars as pl

from immundapter import tcrdist3_cluster, tcrdist3_distances

receptors = pl.DataFrame({
    "receptor_id": ["r1", "r2"],
    "cdr3_b_aa": ["CASSLGQAYEQYF", "CSARDRGNTIYF"],
    "v_b_gene": ["TRBV7-9*01", "TRBV20-1*01"],
    "j_b_gene": ["TRBJ2-7*01", "TRBJ1-2*01"],
})

result = tcrdist3_distances(receptors)
clusters = tcrdist3_cluster(result, radius=20)

Give each receptor a unique, non-null receptor_id. Use the cdr3_a_aa, v_a_gene, and j_a_gene columns for alpha chains. For paired alpha and beta distances, put both chains on one row and pass chains=["alpha", "beta"]. The default is human beta. Pass organism="mouse" for mouse receptors.

result.distances is a dense NumPy matrix for up to 5,000 distinct feature rows. result.receptor_to_row is a Polars table that maps each receptor to its zero-based matrix row. Receptors with identical selected features share a matrix row.

clusters is a Polars table with one row per input receptor. Receptors in the same cluster connect through distances at or below radius.

Metadata

Release files for immundapter 0.2.0a1

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

Source distribution (sdist)

Source distribution for immundapter 0.2.0a1
File Size Uploaded Provenance Actions
immundapter-0.2.0a1.tar.gz 9.0 kB Without provenance Details for immundapter-0.2.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for immundapter 0.2.0a1
File Interpreter ABI Platform Actions
immundapter-0.2.0a1-py3-none-any.whl Python 3 none any Details for immundapter-0.2.0a1-py3-none-any.whl

Total release size: 17.6 kB

Release files / immundapter-0.2.0a1.tar.gz

Download URL immundapter-0.2.0a1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2e0ae851ec042ce83db208e332f5a1caa39d74bac8360b9f79c198dc1b4c88be
BLAKE2b-256 checksum
How to use checksums
074dca488f7ffee66a48811206f8ddc4bcfbb46a7bba85cb8256d0f443a1a244
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / immundapter-0.2.0a1-py3-none-any.whl

Download URL immundapter-0.2.0a1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3459d4c373e95a078983603023a26a588e4a81e3bafe38268b3b703aff42c66
BLAKE2b-256 checksum
How to use checksums
d08808191e932939d1a47b70c3f1e95542aac35230f441233eab465e1513d4d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for immundapter 0.2.0a1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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