# 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
Metadata
Release files for leiden-clustering 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| leiden_clustering-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for leiden_clustering-0.1.0.tar.gz |
Release files / leiden_clustering-0.1.0.tar.gz
| Download URL | leiden_clustering-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2084c6c4e3670a236d25e66fa8e1c76660a6bd29dcd61676376cb74c8edcd13
|
|
BLAKE2b-256 checksum How to use checksums |
3cccf21bd0344385d31fd95fc61d24ef1e30684354184c1163f135d8ae7f774d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for leiden-clustering 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.