A package to quickly identify unbiased graph-based clusterings via parameter optimization in Python
Project description
acdc_py 🤘
Automated Community Detection of Cell 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
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
Tutorial 2: Diffusion Map Embedding & Label Transfer with acdc_py
Installation
pypi
pip install acdc-py
local
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.
References
- 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.
- Traag, V. A., Waltman, L., & Van Eck, N. J. (2019). From Louvain to Leiden: guaranteeing well-connected communities. Scientific Reports, 9(1), 5233.
- Wolf, F. A., Angerer, P., & Theis, F. J. (2018). SCANPY: large-scale single-cell gene expression data analysis. Genome Biology, 19(1), 15.
- Xiang, Y., & Gong, X. G. (2000). Efficiency of generalized simulated annealing. Physical Review E, 62(3), 4473.
- 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.
- 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.
- 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.
- 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
- 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.
- 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.
- Caliński, T., & Harabasz, J. (1974). A dendrite method for cluster analysis. Communications in Statistics – Theory and Methods, 3(1), 1–27.
- Davies, D. L., & Bouldin, D. W. (2009). A cluster separation measure. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2(2), 224–227.
- Cura, T. (2012). A particle swarm optimization approach to clustering. Expert Systems with Applications, 39(1), 1582–1588.
- Zhang, C., Ouyang, D., & Ning, J. (2010). An artificial bee colony approach for clustering. Expert Systems with Applications, 37(7), 4761–4767.
- 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
Project details
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 acdc_py-1.1.5.tar.gz.
File metadata
- Download URL: acdc_py-1.1.5.tar.gz
- Upload date:
- Size: 53.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca9d67795528d626b264f19bec7067d7997688ec9540cce86809c391548478da
|
|
| MD5 |
b0b91b43ffc124a163e92ef638a8e5f7
|
|
| BLAKE2b-256 |
513dbb57b593fa79c5c235fec3f1c12bd8dca5b2dc44c000c9da1270dcb07c66
|
File details
Details for the file acdc_py-1.1.5-py3-none-any.whl.
File metadata
- Download URL: acdc_py-1.1.5-py3-none-any.whl
- Upload date:
- Size: 59.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fb2b3c8dcb155610dbdec1efdb43a3d8a8c6439ca8cf54a8df8ba54433d01fd
|
|
| MD5 |
eca701c25ab7b9548bc97927803bcee9
|
|
| BLAKE2b-256 |
7fbe4c8b5e54780b4e08b9309cd815691770e715ee29d29ac951afc6a97f953a
|