Clustering method based on Forest Fire Dynamics
Project description
forest-fire-clustering
Clustering Method Inspired by Forest Fire Dynamics
Description
Forest Fire Clustering is an efficient and interpretable clustering method for discovering and validating cell types in single-cell sequencing analysis. Different than the existing methods, our clustering algorithm makes minimal prior assumptions about the data and provides point-wise posterior probabilities for internal validation. Additionally, it computes point-wise label entropies that can highlight novel transition cell types de novo along developmental pseudo-time manifolds. Lastly, our inductive algorithm is able to make robust inferences in an online-learning context.
Getting Started
Dependencies
- python >= 3.6
- numpy
- scipy
- scikit-learn
- numba
Installing
Estimated time: 2 mins
pip install forest-fire-clustering
or
pip install -u forest-fire-clustering
Executing program
"X" is a [sample x feature] matrix
To generate clustering:
import forest_fire_clustering.FFC as FFC
cluster_obj = FFC(X, sigma=0.1, k=300, num_permute=int(X.shape[0]/10))
cluster_obj.preprocess()
cluster_obj.fit(fire_temp=100)
To validate the results:
cluster_obj.validate()
cluster_obj.entropy()
cluster_obj.pval()
cluster_obj.entropy_list # list of entropies of the data point
cluster_obj.pval_list # list of posterior significance values
Authors
Zhanlin Chen, Jeremy Goldwasser, Philip Tuckman, Jing Zhang, Mark Gerstein
Project details
Release history Release notifications | RSS feed
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
Hashes for forest_fire_clustering-0.0.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48507cb70cd2b0fba95aa4c90e154f76a4b6c9d985a1ffd38b668c811c74208b |
|
MD5 | 62bdd422c627bf2a4303cbc6630e25d6 |
|
BLAKE2b-256 | 8d8d6e426c0b4420e49ce259b37271019951521e97a3c191c90a0102f46f0827 |
Hashes for forest_fire_clustering-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f3a5b99207a226384d075875bb495e811281a7ef0215b6783a120ebacf07d58 |
|
MD5 | 7b4221cd707900c2dcbc61917f7c494d |
|
BLAKE2b-256 | e700c9b86067b8351b489462cdb34c3beedd3b1dd53059264ce232c3c2d2da01 |