cellpin
cellpin is a lightweight probabilistic model that reconstructs and denoises spatial transcriptomes from single-cell RNA-seq references. It enables transcriptome-wide imputation, robust atlas-to-spatial label-transfer, and improved biological interpretation of both targeted-panel and full-transcriptome spatial datasets. Read the documentation for detailed tutorials.
Quickstart
import cellpin
from torch.utils.data import DataLoader
sc_ds, st_ds = cellpin.pp.setup_data(sc_adata, st_adata)
model = cellpin.CellPin(sc_ds)
model.fit(sc_ds)
loader = DataLoader(st_ds, batch_size=256, shuffle=False)
adata_out = model.impute(loader, obs_adata=st_adata)
Installation
pip
pip install cellpin
uv
uv pip install cellpin
For SpatialData support add the spatial extras:
pip install "cellpin[spatial]"
# or
uv pip install "cellpin[spatial]"
Documentation
Full documentation, tutorials, and API reference: cellpin.readthedocs.io
Citation
If you use cellpin in your research, please cite:
Putze P*, Lucarelli D*, Wellappili D, Bahrami M, Luecken MD, Theis FJ, Saur D. Cellpin enables reference-based imputation and denoising of spatial transcriptomes. bioRxiv 2026.06.02.729566. doi: 10.64898/2026.06.02.729566
* Shared first authorship
@article{putze2026cellpin,
title = {Cellpin enables reference-based imputation and denoising of spatial transcriptomes},
author = {Putze, Philipp and Lucarelli, Daniele and Wellappili, Deelaka and Bahrami, Mojtaba and Luecken, Malte D. and Theis, Fabian J. and Saur, Dieter},
journal = {bioRxiv},
year = {2026},
doi = {10.64898/2026.06.02.729566},
url = {https://doi.org/10.64898/2026.06.02.729566}
}
Metadata
Release files for cellpin 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cellpin-0.3.0.tar.gz | 24.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cellpin-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.5 MB
Release files / cellpin-0.3.0.tar.gz
| Download URL | cellpin-0.3.0.tar.gz |
|---|---|
| Size | 24.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba6a6b9df334ca79369f1cd92e38c82dc2615968cea13b94ec840641f6214947
|
|
BLAKE2b-256 checksum How to use checksums |
5d8e81b971cc213640fb7321f0fcd9fabb96a5ad44038970f853d97277aa28b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 21, 2026.
Transparency logRelease files / cellpin-0.3.0-py3-none-any.whl
| Download URL | cellpin-0.3.0-py3-none-any.whl |
|---|---|
| Size | 52.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b2034b41f00d95360f7d9a16f68a35e13704af343543e28b58ea4062536e8fb
|
|
BLAKE2b-256 checksum How to use checksums |
45f2a2ba9af880bd9c7366ba94519eebc436d2f06a6c583072aef7f0bba8d37d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 21, 2026.
Transparency log