Interpretable Sequence Clustering Tree
Project description
Interpretable-Sequence-Clustering-Tree
Source Code for Interpretable sequence clustering https://www.sciencedirect.com/science/article/pii/S0020025524013677
Running
We added the tree structure visualization, to use it on linux please first
sudo apt-get install graphviz
export PATH=$PATH:/usr/local/bin
source ~/.bashrc
We recommend using Pypy, which may give exponential speedups on larger datasets
Usage
Random Projection on Python version
pip install ISCT
from ISCT import ISCT
sequences = [
['a', 'g', 't', 't', 'c'],
['a', 't', 'g', 'g', 't', 'u', 't'],
['a', 'c', 't', 'u', 'u', 'a', 'a'],
['a', 'c', 'a', 'u', 'a', 't', 'c', 't'],
['a', 'g', 'g', 'c', 'a', 'a', 'c'],
['a', 'c', 'g', 'g', 'c', 'c', 'a', 'a']]
isct = ISCT(num_clusters = 3, visulization_name = 'test', min_sample=2) # if visulization_name is provided, it generates the "test.pdf".
y_pred = isct.fit(sequences)
print(y_pred)
Dependencies
- Python 3.9.16 (Pypy)
- NumPy 1.24.3
- Scikit-learn 1.2.2
- Pandas 2.0.1
- Prefixspan 0.5.2
Visualization
ISCT could provide you with a highly concise and short clustering tree, taking poineer as example:
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
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 isct-0.1.2.tar.gz.
File metadata
- Download URL: isct-0.1.2.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8851ab4dcb63575a53707ef11da3b20d4d3ae748938304d9cfaed7b90f4c6d4
|
|
| MD5 |
f80f104d3334c0f195c7272f9afdaa0c
|
|
| BLAKE2b-256 |
27ee1ec3a4c83ddc5720debd246d552b1495b67bc53db2a44d0d785b7a1f0bcc
|
File details
Details for the file ISCT-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ISCT-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8285e5052bc65ae308c6d6bfbb06f2d193f05c144173f00a0b8e82a70c80799f
|
|
| MD5 |
4b54ee089ae6b8c87d21532c3523beba
|
|
| BLAKE2b-256 |
f205662685af65c318a522a87558142b6ad65aaeeafd9db2641fe3857d4720e9
|