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.3.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.3-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seq_tool-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 1d8db9bac3ea0775002ef8f939b23efdc9e1de6cea4235ef79076da8381aff19
MD5 2cef429c2bd596680931cae64a3a8087
BLAKE2b-256 c5e5912bd151e4309308ef25be2d4827d3d7adc82503f32b388b378fc9f33351

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seq_tool-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 147226d21b48f7c92884cca26017742ab7c2528f31c238f2b61f210232291323
MD5 301e2d6cd41d391238bbc130e9158710
BLAKE2b-256 aee5679d33a63b369a260a288c6726a55cdf12266574a09ef6e6aeffcd7d507a

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