Skip to main content

Generalized suffix tree generator and renderer

Project description

suffix-tree-tool

Command-line tool and Python library for building, annotating, and rendering generalized suffix trees. The project accepts up to five sequences, colors edges per sequence, and produces DOT/PDF output that is ready to embed in documents.

Installation

From PyPI:

pip install suffix-tree-tool

From a cloned repository:

pip install .

Or directly from Git (once the repository is public):

pip install git+https://github.com/EmericLaberge/suffix-tree-tool.git

Usage

generate-suffix-tree agacagg ggacaga acacac --annotate-internal --unique-terminal

Key options:

  • --include-terminal: keep the suffix that contains only the terminator.
  • --unique-terminal: assign a distinct terminator to each sequence.
  • --annotate-internal: display depth and sequence indices on internal nodes.

The renderer writes two files in the current directory:

  • suffix_tree.dot
  • suffix_tree.pdf (when Graphviz is available)

Python API

from suffix_tree_tool import process_sequences, build_suffix_tree, render_suffix_tree

License

Distributed under the MIT License (see LICENSE for details). For questions or contributions, email emeric.laberge@umontreal.ca.

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

suffix_tree_tool-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

suffix_tree_tool-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: suffix_tree_tool-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for suffix_tree_tool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 70556673bd0b305258cffd1cb25dda8a470a53e67fee3d69a0cef00d71e77501
MD5 39438452cb69b577d26ac93e7576543d
BLAKE2b-256 9c2d701e24fa0b326885587bc7ce95bbd05f94a2c6c6b8e018e4f38c9674d8fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for suffix_tree_tool-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2df516f8111e6885256742ca716f552d060d2c0a129210f86195bcc6c31e4989
MD5 5a7e5d5968daf49c46fc175f7bd1f911
BLAKE2b-256 4791604f621b3ec8e8fb1728697e0208d94334a7664164cfac94e06b3c32a08e

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