Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tikhonov-0.1.0-cp310-abi3-win_amd64.whl (721.0 kB view details)

Uploaded CPython 3.10+Windows x86-64

tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl (523.6 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

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

Hashes for tikhonov-0.1.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 00e9e8813a20e7b96393658cd5e78b56bbfa8d0d8b7a709404a3e8cd3602e9bc
MD5 f452aaec6e3bcb0c885920d938f9691d
BLAKE2b-256 a9a49383397b381aaa5cb93bc09b6b7b5a7c8d5b4d8cd2f15e09234e7c762226

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tikhonov-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c10682ca287abf82d113602d9599977dd8afe846076a0925fcfabb9e6d0f04ba
MD5 9b83fd8ffe0e1a2850bfbf41d231ce2a
BLAKE2b-256 688f0eeb10431e43f60591b28ed83d7c1b50de69faf94aa391e851416279a1aa

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tikhonov-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24da2c4d653e75f1fbcc869297e3c2b62362eb1623624cc03dbbc3bff336aab1
MD5 cb96dd054b648afe4433f89dc667bae8
BLAKE2b-256 346af7a37b1e7a577673d65fd9f6d324fa078c6dcbf63357b2574089bf6d9e01

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page