Skip to main content

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

Just run ISCT_py.py for running the code

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: image

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

isct-0.1.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ISCT-0.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file isct-0.1.1.tar.gz.

File metadata

  • Download URL: isct-0.1.1.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

Hashes for isct-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c7bf6764382c2de50f81127366bd997714b1fcd29fe85f21e14a8a1d6b2c7f13
MD5 0f8fcf7daf5b2163dc55f7999db2675c
BLAKE2b-256 5c8179533c2f167f524d5987625575dd302196d7d06be7f45ad934b1fe82a6f0

See more details on using hashes here.

File details

Details for the file ISCT-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ISCT-0.1.1-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

Hashes for ISCT-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee6160b787b7fe731e63aa1e17926fb43842b3b7c228784549861276d6a7629a
MD5 e60f8203671dc77848005b420b6c2e3d
BLAKE2b-256 541efcd05c98f140ce239fa1b97eb7fc1f493fa2e97108faa19ed4916169204e

See more details on using hashes here.

Supported by

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