Harmony2 single-cell data integration (pure Rust, Python bindings)
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tikhonov-0.1.0-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: tikhonov-0.1.0-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 721.0 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00e9e8813a20e7b96393658cd5e78b56bbfa8d0d8b7a709404a3e8cd3602e9bc
|
|
| MD5 |
f452aaec6e3bcb0c885920d938f9691d
|
|
| BLAKE2b-256 |
a9a49383397b381aaa5cb93bc09b6b7b5a7c8d5b4d8cd2f15e09234e7c762226
|
Provenance
The following attestation bundles were made for tikhonov-0.1.0-cp310-abi3-win_amd64.whl:
Publisher:
release.yml on alejandro-soto-franco/tikhonov
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tikhonov-0.1.0-cp310-abi3-win_amd64.whl -
Subject digest:
00e9e8813a20e7b96393658cd5e78b56bbfa8d0d8b7a709404a3e8cd3602e9bc - Sigstore transparency entry: 1343630582
- Sigstore integration time:
-
Permalink:
alejandro-soto-franco/tikhonov@bb53a28cd24a48e6a1321b59c99a51800b63e72a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alejandro-soto-franco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bb53a28cd24a48e6a1321b59c99a51800b63e72a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c10682ca287abf82d113602d9599977dd8afe846076a0925fcfabb9e6d0f04ba
|
|
| MD5 |
9b83fd8ffe0e1a2850bfbf41d231ce2a
|
|
| BLAKE2b-256 |
688f0eeb10431e43f60591b28ed83d7c1b50de69faf94aa391e851416279a1aa
|
Provenance
The following attestation bundles were made for tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on alejandro-soto-franco/tikhonov
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
c10682ca287abf82d113602d9599977dd8afe846076a0925fcfabb9e6d0f04ba - Sigstore transparency entry: 1343630591
- Sigstore integration time:
-
Permalink:
alejandro-soto-franco/tikhonov@bb53a28cd24a48e6a1321b59c99a51800b63e72a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alejandro-soto-franco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bb53a28cd24a48e6a1321b59c99a51800b63e72a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 523.6 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24da2c4d653e75f1fbcc869297e3c2b62362eb1623624cc03dbbc3bff336aab1
|
|
| MD5 |
cb96dd054b648afe4433f89dc667bae8
|
|
| BLAKE2b-256 |
346af7a37b1e7a577673d65fd9f6d324fa078c6dcbf63357b2574089bf6d9e01
|
Provenance
The following attestation bundles were made for tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl:
Publisher:
release.yml on alejandro-soto-franco/tikhonov
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
24da2c4d653e75f1fbcc869297e3c2b62362eb1623624cc03dbbc3bff336aab1 - Sigstore transparency entry: 1343630603
- Sigstore integration time:
-
Permalink:
alejandro-soto-franco/tikhonov@bb53a28cd24a48e6a1321b59c99a51800b63e72a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alejandro-soto-franco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bb53a28cd24a48e6a1321b59c99a51800b63e72a -
Trigger Event:
workflow_dispatch
-
Statement type: