scLKME
A Landmark-based Approach for Generating Multi-cellular Sample Embeddings from Single-cell Data
Introduction
scLKME is a computational approach designed for generating sample embeddings in multi-sample single-cell data. scLKME models samples as cell distributions, and leverages lanbmark-based kernel mean embedding to generate a sample-by-landmark kernel matrix as sample embeddings. The workflow of scLKME is as follows:
Installation
scLKME requires python version >= 3.8, < 3.12.
scLKME including its dependencies can be installed via PyPI by running:
pip install sclkme
Data
All the datasets used in this study are shared via .h5ad format. The datasets are available at:
Get started
scLKME's apis are designed to be compatible with the scanpy's ecosystem. To use scLKME, here is a basic example:
import sclkme
import scanpy as sc
n_sketch= 128
sample_id = "sample_id"
adata = sc.read_h5ad("path_to_h5ad_data")
sclkme.tl.sketch(adata, n_sketch=n_sketch)
X_anchor = adata[adata.obs['sketch']].X.copy()
sclkme.tl.kernel_mean_embedding(adata, partition_key="sample_id", X_anchor=X_anchor)
# sample_embedding
adata.uns['kme'][f'{sample_id}_kme']
For more details, examples and tutorials, check our document.
Run on a cloud platform
| Tutorials | Colab |
|---|---|
| Cell Sketching | |
| Landmark-based multi-sample single-cell data analysis | |
Citation
@article{yi2023sclkme,
title={scLKME: A Landmark-based Approach for Generating Multi-cellular Sample Embeddings from Single-cell Data},
author={Yi, Haidong and Stanley, Natalie},
journal={bioRxiv},
pages={2023--11},
year={2023},
publisher={Cold Spring Harbor Laboratory}
}
Metadata
Release files for sclkme 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sclkme-0.9.4.tar.gz | 13.5 kB | Without provenance | Details for sclkme-0.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sclkme-0.9.4-py3-none-any.whl | Python 3 | none | any | Details for sclkme-0.9.4-py3-none-any.whl |
Total release size: 28.6 kB
Release files / sclkme-0.9.4.tar.gz
| Download URL | sclkme-0.9.4.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c16c21ac4211ebe2eb42909199bdc6d9e1ede3fee26201567d12b3ea854c6da
|
|
BLAKE2b-256 checksum How to use checksums |
029c34faf401bb2b4442462bd40e08b92712020c052b2516129e1f4ab4343e4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/21.6.0
|
Release files / sclkme-0.9.4-py3-none-any.whl
| Download URL | sclkme-0.9.4-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e964878e9b2936feb3511b95f37720bcb9b33d7faa44bd7793b1a563d9162bf
|
|
BLAKE2b-256 checksum How to use checksums |
488bfcc054f6d8f684dc8ebffb1ed0401d34388e12e81e80637266017671242c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/21.6.0
|
Security for sclkme 0.9.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.