目录

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

关于

基于优化准则改进样本/序列聚类质量的工具,常见于微生物 amplicon 数据。

12.7 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号