tikhonov (Python)
Python bindings for tikhonov, a pure-Rust port of Harmony2 for single-cell data integration.
Install
pip install tikhonov
Quickstart (AnnData)
import tikhonov
import scanpy as sc
adata = sc.read_h5ad("my_data.h5ad")
# PCA already computed → obsm["X_pca"]
tikhonov.integrate(adata, key="sample", basis="X_pca", adjusted_basis="X_harmony")
# adata.obsm["X_harmony"] now holds the corrected embedding
Quickstart (arrays, harmonypy-compatible signature)
import numpy as np
import pandas as pd
import tikhonov
Z = np.random.randn(1000, 20) # (n_cells, n_PCs)
meta = pd.DataFrame({"sample": np.random.choice(["a", "b"], 1000)})
out = tikhonov.run_harmony(Z, meta, "sample", sigma=0.1, theta=2.0, max_iter=10)
print(out.Z_corr.shape) # (1000, 20)
print(out.converged, out.n_iter)
License
Apache-2.0.
Metadata
Release files for tikhonov 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 | Reset |
|---|---|---|---|---|
| tikhonov-0.1.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 3.6 MB
Release files / tikhonov-0.1.0-cp310-abi3-win_amd64.whl
| Download URL | tikhonov-0.1.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 721.0 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
00e9e8813a20e7b96393658cd5e78b56bbfa8d0d8b7a709404a3e8cd3602e9bc
|
|
BLAKE2b-256 checksum How to use checksums |
a9a49383397b381aaa5cb93bc09b6b7b5a7c8d5b4d8cd2f15e09234e7c762226
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 20, 2026.
Transparency logRelease files / tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c10682ca287abf82d113602d9599977dd8afe846076a0925fcfabb9e6d0f04ba
|
|
BLAKE2b-256 checksum How to use checksums |
688f0eeb10431e43f60591b28ed83d7c1b50de69faf94aa391e851416279a1aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 20, 2026.
Transparency logRelease files / tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 523.6 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
24da2c4d653e75f1fbcc869297e3c2b62362eb1623624cc03dbbc3bff336aab1
|
|
BLAKE2b-256 checksum How to use checksums |
346af7a37b1e7a577673d65fd9f6d324fa078c6dcbf63357b2574089bf6d9e01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 20, 2026.
Transparency log