# leiden_clustering [](https://pypi.python.org/pypi/leiden_clustering) [](https://opensource.org/licenses/BSD-3-Clause)
## Description Class wrapper based on [scanpy](https://scanpy.readthedocs.io/en/stable/) to use the Leiden algorithm to directly cluster your data matrix with a scikit-learn flavor.
## Requirements Developed using: - scanpy v1.7.2 - sklearn v0.23.2 - umap v0.4.6 - numpy v1.19.2 - leidenalg
## Installation ### pip `shell pip install leiden_clustering ` ### local `shell git clone https://github.com/MiqG/leiden_clustering.git cd leiden_clustering pip install -e . `
## Usage `python from leiden_clustering import LeidenClustering import numpy as np X = np.random.randn(100,10) clustering = LeidenClustering() clustering.fit(X) clustering.labels_ `
## License leiden_clsutering is distributed under a BSD 3-Clause License (see [LICENSE](https://github.com/CRG-CNAG/leiden_clustering/blob/main/LICENSE)).
## References - Traag, V.A., Waltman, L. & van Eck, N.J. From Louvain to Leiden: guaranteeing well-connected communities. Sci Rep 9, 5233 (2019). DOI: https://doi.org/10.1038/s41598-019-41695-z
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file leiden_clustering-0.1.0.tar.gz.
File metadata
- Download URL: leiden_clustering-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2084c6c4e3670a236d25e66fa8e1c76660a6bd29dcd61676376cb74c8edcd13
|
|
| MD5 |
1d17eda2325434118854eb9a3ac9c5b7
|
|
| BLAKE2b-256 |
3cccf21bd0344385d31fd95fc61d24ef1e30684354184c1163f135d8ae7f774d
|