Skip to main content

Single cell clustering and recommendations at a glance

Project description

opticlust

CI/CD Ruff PyPI version install with bioconda Anaconda-Server Badge Anaconda-Server Badge DOI

Single cell clustering and recommendations at a glance. Identify which clustering resolution(s) fit your data within minutes.

Opticlust currently offers:

  • Automated clustering (leiden/louvain) at various resolutions
  • Automatic selection of significant resolutions
  • Clustering recommendations based on intra- and intercluster metrics
  • Visualization of clusters per resolution and their relative compositions
  • Easy to use, yet highly customizable Python API
  • Cluster recoloring for opticlust and UMAP visualization (see below)

Installation

PyPi

pip install opticlust

Conda

conda install -c bioconda opticlust

GitHub

git clone https://github.com/siebrenf/opticlust.git
pip install opticlust

Develop

git clone https://github.com/siebrenf/opticlust.git
conda env create -n opticlust -f opticlust/requirements.yaml
conda activate opticlust
pip install --editable ./opticlust --no-deps --ignore-installed

Tutorial output

Output of clustering_plot() and score_resolutions():

Output of clustree():

Output of sc.pl.umap()

Output of sc.pl.rank_genes_groups_heatmap() and sc.pl.rank_genes_groups_dotplot():

top_low recommended resolution:

top_medium recommended resolution:

top_high recommended resolution:

Advantages of opticlust

The UMAPs and cluster tree plot can be compared immediately due to the automatic renaming and recoloring of the clusters. Without renaming and recoloring, figures would have looked like this:

Output of clustree(rename_cluster=False) and sc.pl.umap():

Note how cluster 2 becomes cluster 3 at resolution 0.43. This makes it difficult to track how changes in resolution impacted the clustering.

Acknowledgements

This tool was inspired by:

How to cite

When using this software package, please cite the accompanied DOI under "Citation" at https://doi.org/10.5281/zenodo.14513541

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 Distribution

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

opticlust-0.5.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file opticlust-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: opticlust-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for opticlust-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7872589c63a6ca7d53da181abb432b1b70456a780dd62d7a1181d615555e6a0
MD5 e3a4daa93c9d3264511bbbbfaf551ddf
BLAKE2b-256 0299b02abe2110d1aa5576a0333439d8cdbd697b712832ece1f2f6c26c941657

See more details on using hashes here.

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