Metadata-Version: 2.1
Name: acdc-py
Version: 1.1.4
Summary: A package to quickly identify unbiased graph-based clusterings via parameter optimization in Python
Home-page: https://github.com/califano-lab/acdc_py
Author: Alexander L.E. Wang & Luca Zanella & Alessandro Vasciaveo
Author-email: aw3436@cumc.columbia.edu
License: MIT
Project-URL: Documentation, https://acdc.readthedocs.io/en/latest/
Project-URL: Source, https://github.com/califano-lab/acdc_py
Platform: UNKNOWN
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: scipy
Requires-Dist: tqdm
Requires-Dist: scanpy
Requires-Dist: anndata
Requires-Dist: pandas
Requires-Dist: numpy
Requires-Dist: joblib
Requires-Dist: leidenalg
Requires-Dist: scikit-learn
Requires-Dist: matplotlib
Requires-Dist: seaborn
Requires-Dist: datetime
Requires-Dist: nbsphinx

# acdc_py 🤘
[![pipy](https://img.shields.io/pypi/v/acdc-py?color=informational)](https://pypi.org/project/acdc-py/1.1.3/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15099170.svg)](https://doi.org/10.5281/zenodo.15099170)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/acdc-py)](https://pepy.tech/project/acdc-py)
[![Documentation Status](https://readthedocs.org/projects/acdc/badge/?version=latest)](https://acdc.readthedocs.io/en/latest/?badge=latest)


**A**utomated **C**ommunity **D**etection of **C**ell Populations in Python  

This repo contains the current Python implementation of ACDC, an optimization-based framework to automatize clustering of cell populations from scRNA-seq data using community detection algorithms.
```acdc_py``` is deployed as a Python package and fully compatible with ```Scanpy```.

Why you may find this package useful:

• Easy computation of optimal clustering solutions via unbiased parameter tuning

• Scanpy-compatible framework

• Built for speed, memory efficiency, and scalability with large scRNAseq datasets

• Straightforward subclustering for working with broad and distinct lineages simultaneously 

# Features
<div align="center">
  <img width="480" alt="image" src="https://raw.githubusercontent.com/VasciaveoLab/acdc_py/main/assets/acdc_readme_features.jpg">
</div>

Conceptual details of this procedure are available in the Methods section of Malagola, Vasciaveo, et al. Cell 2024

# Tutorials
[Tutorial 1: Clustering human single-cell RNA seq data with ACDC](https://github.com/VasciaveoLab/acdc_py/blob/main/Tutorials/ACDC_ICS_Jupyter_Notebook_Tutorial.ipynb)

[Tutorial 2: Diffusion Map Embedding & Label Transfer with acdc_py](https://github.com/VasciaveoLab/acdc_py/blob/main/Tutorials/ACDC_Label_Transfer_Jupyter_Notebook_Tutorial.ipynb)

# Installation 
### pypi
```shell
pip install acdc-py
```
### local
```shell
git clone https://github.com/VasciaveoLab/acdc_py/
cd acdc_py
pip install -e .
```
... Start playing around! 🎸

# Citation
If you use ```acdc_py``` in your work, please cite the ```acdc_py``` publication as follows:

> **Protocol for automated graph-based clustering of single-cell RNA-seq data with application in mouse intestinal stem cells.**
>
> Wang, A. L., Zanella, L., Ochiai, Y., Golinelli, L., Califano, A., Malagola, E., & Vasciaveo, A.
>
> _STAR protocols_ 2025 Sep 19. doi: [10.1016/j.xpro.2025.104000](https://doi.org/10.1016/j.xpro.2025.104000).

# References
1. Malagola, E., Vasciaveo, A., Ochiai, Y., Kim, W., Zheng, B., Zanella, L., et al. (2024). Isthmus progenitor cells contribute to homeostatic cellular turnover and support regeneration following intestinal injury. Cell, 187(12), 3056–3071.
2. Traag, V. A., Waltman, L., & Van Eck, N. J. (2019). From Louvain to Leiden: guaranteeing well-connected communities. Scientific Reports, 9(1), 5233.
3. Wolf, F. A., Angerer, P., & Theis, F. J. (2018). SCANPY: large-scale single-cell gene expression data analysis. Genome Biology, 19(1), 15.
4. Xiang, Y., & Gong, X. G. (2000). Efficiency of generalized simulated annealing. Physical Review E, 62(3), 4473.
5. Weiler, P., Lange, M., Klein, M., Pe’er, D., & Theis, F. (2024). CellRank 2: unified fate mapping in multiview single-cell data. Nature Methods, 21(7), 1196–1205.
6. Alvarez, M. J., Shen, Y., Giorgi, F. M., Lachmann, A., Ding, B. B., Ye, B. H., et al. (2016). Functional characterization of somatic mutations in cancer using network-based inference of protein activity. Nature Genetics, 48(8), 838–847.
7. Wang, A. L., Lin, Z., Zanella, L., Vlahos, L., Anglada Girotto, M., Zafar, A., et al. (2024). pyVIPER: A fast and scalable Python package for rank-based enrichment analysis of single-cell RNA-seq data. bioRxiv.
8. Bradbury, J., Frostig, R., Hawkins, P., Johnson, M. J., Leary, C., Maclaurin, D., et al. (2018). JAX: Composable transformations of Python+NumPy programs (Version 0.3.13). GitHub repository. https://github.com/google/jax
9. Lachmann, A., Giorgi, F. M., Lopez, G., & Califano, A. (2016). ARACNe-AP: gene network reverse engineering through adaptive partitioning inference of mutual information. Bioinformatics, 32(14), 2233–2235.
10. Obradovic, A., Chowdhury, N., Haake, S. M., Ager, C., Wang, V., Vlahos, L., et al. (2021). Single-cell protein activity analysis identifies recurrence-associated renal tumor macrophages. Cell, 184(11), 2988–3005.
11. Caliński, T., & Harabasz, J. (1974). A dendrite method for cluster analysis. Communications in Statistics – Theory and Methods, 3(1), 1–27.
12. Davies, D. L., & Bouldin, D. W. (2009). A cluster separation measure. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2(2), 224–227.
13. Cura, T. (2012). A particle swarm optimization approach to clustering. Expert Systems with Applications, 39(1), 1582–1588.
14. Zhang, C., Ouyang, D., & Ning, J. (2010). An artificial bee colony approach for clustering. Expert Systems with Applications, 37(7), 4761–4767.
15. Shelokar, P. S., Jayaraman, V. K., & Kulkarni, B. D. (2004). An ant colony approach for clustering. Analytica Chimica Acta, 509(2), 187–195.


# Acknowledgments
This work was supported by grants from an NCI Outstanding Investigator Award (R35 CA197745) and the NIH Shared Instrumentation grants S10OD012351, S10OD021764, and S10OD032433, all to A.C. A.V. is supported by an Early Career Development Pilot Award from NIH/NCI Cancer Center, funded through the Cancer Center Support grant, P30CA013696.

# Contacts

Alessandro Vasciaveo - avasciaveo@sbpdiscovery.org

Alexander Wang - aw3436@cumc.columbia.edu  

Luca Zanella - lz2841@cumc.columbia.edu  




