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:
Release files for ISCT 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| isct-0.1.2.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ISCT-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / isct-0.1.2.tar.gz
| Download URL | isct-0.1.2.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8851ab4dcb63575a53707ef11da3b20d4d3ae748938304d9cfaed7b90f4c6d4
|
|
BLAKE2b-256 checksum How to use checksums |
27ee1ec3a4c83ddc5720debd246d552b1495b67bc53db2a44d0d785b7a1f0bcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.2
|
Release files / ISCT-0.1.2-py3-none-any.whl
| Download URL | ISCT-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8285e5052bc65ae308c6d6bfbb06f2d193f05c144173f00a0b8e82a70c80799f
|
|
BLAKE2b-256 checksum How to use checksums |
f205662685af65c318a522a87558142b6ad65aaeeafd9db2641fe3857d4720e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.2
|