Skip to main content

Cluster your data matrix with the Leiden algorithm.

Project description

# leiden_clustering [![pipy](https://img.shields.io/pypi/v/leiden_clustering?color=informational)](https://pypi.python.org/pypi/leiden_clustering) [![License](https://img.shields.io/badge/License-BSD%203–Clause-blue.svg)](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

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

leiden_clustering-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

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

Hashes for leiden_clustering-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b2084c6c4e3670a236d25e66fa8e1c76660a6bd29dcd61676376cb74c8edcd13
MD5 1d17eda2325434118854eb9a3ac9c5b7
BLAKE2b-256 3cccf21bd0344385d31fd95fc61d24ef1e30684354184c1163f135d8ae7f774d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page