Skip to main content

A Python package implementing the Generalized Sequential Pattern (GSP) algorithm with concurrency support.

Project description

seq_tool

The seq_tool is a Python package that implements the Generalized Sequential Pattern (GSP) algorithm. Originally developed as part of the Course Sequencing Analysis Tool (CSAT) to analyze and sequence student course data, the toolkit has been extended to support more generalized use cases. It is designed for applications where analyzing sequential patterns is essential, such as course sequencing or other data patterns.

The package supports grouping items based on a specified granularity using concurrency and provides both a command-line interface (CLI) and a graphical user interface (GUI).

Features

  • GSP Algorithm: Analyze sequential patterns using the Generalized Sequential Pattern (GSP) algorithm.
  • Granularity-Based Grouping: Use concurrency to group items by a specified time granularity, such as semesters (quarters) or months.
  • Command-Line Interface: Run the GSP algorithm from the terminal for efficient scripting and automation.
  • Graphical User Interface: Easily configure and run the algorithm using an interactive graphical interface.

Installation

Install via command-line from PyPi:

python3 -m pip install seq-tool

Usage

Command-Line Interface

You can run the GSP algorithm using the CLI. Here’s an example:

seq-cli -i data.csv -s 50,100 -c BIO,CHEM --mode separate -o results --concurrency

For more detailed instructions and examples, please refer to the cSAT Manual.

Graphical User Interface

Launch the GUI for an easy-to-use interface:

seq-gui

The GUI allows you to:

  • Load your data file.
  • Set support thresholds and categories.
  • Group items based on granularity (e.g., semester or month).

Requirements

  • Python 3.10 or later
  • Dependencies are automatically installed when you run python3 -m pip install seq-tool.

Data Requirements

To understand the required data format, refer to the Data Dictionary.

Example Datasets

Example datasets for testing and exploring the cSAT are available here on Google Drive.

Development Roadmap

  • Current: Working on testing and validation on the general case for sequential pattern analysis. Determining how to include the time (span?) to better understand the output.
  • Future: Finalize packaging and prepare the toolkit for distribution on PyPi (Python Package Index). Additionally, explore ways to optimize the GSP algorithm, such as implementing parallel execution, to improve performance for large datasets.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

seq_tool-0.0.1.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

seq_tool-0.0.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file seq_tool-0.0.1.tar.gz.

File metadata

  • Download URL: seq_tool-0.0.1.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for seq_tool-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4516d0c4685f2a43cef77602a61d9a93442f8290b155951e0c778bf58cd4ab0d
MD5 d8142b5cc6515be69102944af566be95
BLAKE2b-256 6d051fdf0d8f883f145e06edc9603e79e71a1614719ce5fe74d76e1dd62ef2c0

See more details on using hashes here.

File details

Details for the file seq_tool-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: seq_tool-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for seq_tool-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c5fd6d6e20e83398433c48e11bcac2ba6747e905178135973799df1da156fd3
MD5 6acedda7e00030dd1a285003ef4709ac
BLAKE2b-256 3b6a55b5b123ff2747703d4618a7776e487cbaaa65c4d77d268e7b6a33705791

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