cnv-sc-rs
Copy number inference from single cell expression, in Rust. A port of the expression path of numbat and hahmmr (both MIT): inferCNV-style smoothing, a Poisson-lognormal HMM on pseudobulks, consensus segments and per-cell segment posteriors.
pip install cnv-sc-rs # core
pip install "cnv-sc-rs[anndata]" # plus infer_cnv_adata
import cnv_sc_rs as cnv
# X: cells x genes raw counts (scipy sparse), loci per gene, normal cells
res = cnv.infer_cnv(X, chrom, start, end, reference=is_normal)
res.segments # polars DataFrame, one row per consensus segment
res.p_tumour # per cell
With scanpy:
cnv.infer_cnv_adata(
adata, reference_key="cell_type", reference_cat=["T cell", "B cell"], layer="counts"
)
Metadata
Release files for cnv-sc-rs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cnv_sc_rs-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details for cnv_sc_rs-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| cnv_sc_rs-0.1.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for cnv_sc_rs-0.1.0-cp310-abi3-macosx_11_0_arm64.whl |
| cnv_sc_rs-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details for cnv_sc_rs-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl |
Total release size: 3.5 MB
Release files / cnv_sc_rs-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | cnv_sc_rs-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
53a19b1717aa8d88ad017743c54d87d5d822caa30ce6183603d0262d48b815b5
|
|
BLAKE2b-256 checksum How to use checksums |
17f8f3b394d81ee434aeafe75485a33e095937adbe2f046393ed49b91e45fad6
|
| 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 / cnv_sc_rs-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | cnv_sc_rs-0.1.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 990.4 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ba5f0e6a5f854c60b38db77cc809cad0cf4b2edcd59c628caaa3991a5a4b73fa
|
|
BLAKE2b-256 checksum How to use checksums |
dcead97c10ed5d8363cb621305b603d2ecc3c76fa8d14d5ee7c1afb0ced526a6
|
| 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 / cnv_sc_rs-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | cnv_sc_rs-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
685a7c2b57a3b80fcadafeaa2294215673241c3e3433d85772d33f235342bc55
|
|
BLAKE2b-256 checksum How to use checksums |
9183793e3b3f3fe708c05229651341f11bba1c223f75026c285f70b3454ddedd
|
| 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 cnv-sc-rs 0.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 3 files in this release have been uploaded with provenance metadata.
Attestation for cnv_sc_rs-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
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.