Package for running the CIDR algorithm implemented in R, in python
Project description
rnadtu
A Python package for running the CIDR algorithm (originally implemented in R) for clustering single-cell RNA-seq data using AnnData objects.
Features
-
Run the CIDR algorithm from Python using:
cidr()— subprocess-based, using temporary CSV files (recommended for large datasets)cidr_non_csv()— subprocess-based, using in-memory buffers (faster but memory intensive and difficult to debug)cidr_rpy2()— uses therpy2bridge (direct R integration, less suitable for large datasets)
-
Optional configuration options:
data_type: default is"raw", can be"cpm"(counts per million)n_cluster: default isNone(CIDR calculates the optimal number), or manually specify an positive integerlayer: which layer of theAnnDataobject to use for input- Optional output controls:
pc: store principal coordinatesdissim: store dissimilarity matrixdropout: store dropout matrixsave_clusters: (only in cidr_rpy2) choose store cluster labels (defaultTrue)
-
Results are saved in the
AnnDataobject:obsm[layer + "_cidr_pc"]— principal componentsobsm[layer + "_cidr_clusters"]— cluster labels (ifsave_clusters=True)obsp[layer + "_cidr_dissimilarity_matrix"]— pairwise distancesuns[layer + "_cidr_variation"],uns[layer + "_cidr_eigenvalues"]— PCA variationuns[layer + "_cidr_dropout_candidates"]— dropout data
-
Generates a clustering plot in
cidr_plots.pdf
Installation
pip install rnadtu
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 Distribution
Built Distribution
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 rnadtu-0.1.7.tar.gz.
File metadata
- Download URL: rnadtu-0.1.7.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63ab8e4933c0034b214e1a70364893d56a3f7c180012b0c61456de624b6b2ef6
|
|
| MD5 |
aeffba67dd9920db0af095f056f8e265
|
|
| BLAKE2b-256 |
ca6cfaa41ae61a1f7b0713b7c934ff76b8ee19af523441fa1194f57b9fa74934
|
File details
Details for the file rnadtu-0.1.7-py3-none-any.whl.
File metadata
- Download URL: rnadtu-0.1.7-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5243af9afc9189f165d809e3f6eb43724013d4d29781c59862170465aee6f97
|
|
| MD5 |
f8df600701703bedd51685acaee8cd99
|
|
| BLAKE2b-256 |
ed03fb157f8eb7a8ae4919216e20aaef239705fcb0b6f334708922b548a38039
|