Skip to main content

GRAMEP - Genome vaRiation Analysis from the Maximum Entropy Principle

Documentation Status codecov CI pypi

GRAMEP is a powerful, Python-based tool designed for the precise identification of Single Nucleotide Polymorphisms (SNPs) within biological sequences. It goes beyond basic SNP identification, offering advanced functionalities including:

  • Intersection analysis: Analyze mutations found in different variants to identify shared mutations.
  • Classification model training: Train a classification model to predict the class of new sequences.

GRAMEP is accessible through a robust and intuitive Command-Line Interface (CLI). The primary command is gramep, with sub-commands for each action the application can perform.

For detailed information, access the documentation.

How to install

The use of pipx is recommended for installing GRAMEP:

pipx install gramep

Although this is only a recommendation, you can also install the project with the manager of your choice. For example, pip:

pip install gramep

Quick Guide

Identifying the most informative SNPs

To identify the most informative Single Nucleotide Polymorphisms (SNPs) using GRAMEP, you will utilize the get-mutations command. Below, you will find the basic usage of this command:

gramep get-mutations [OPTIONS]

For detailed information on available options and how to use them, simply enter the following command:

gramep get-mutations --help

This will provide you with comprehensive guidance on how to make the most of the get-mutations command, allowing you to efficiently analyze and extract valuable SNPs from your biological sequences.

Identifying Mutation Intersection Between Variants

To identify the intersection of mutations present in two or more variants of the same organism, you can utilize the `get-intersection`` command provided by GRAMEP. Below, we outline the basic usage of this command:

gramep get-intersection [OPTIONS]

This command allows you to analyze and find common mutations shared among multiple variant sequences. For detailed information on available options and how to make the most of the get-intersection command, simply use the --help flag:

gramep get-intersection --help

Classifying Biological Sequences

To classify biological sequences using GRAMEP, you can utilize the classify command. Here is the basic usage of this command:

gramep classify [OPTIONS]

This command allows you to perform sequence classification tasks with ease. For detailed information on available options and how to use them effectively, use the --help flag:

gramep classify --help

Predicting Biological Sequences

The predict command of GRAMEP is used to perform class predictions on new biological sequences after training a classification model. Below, you'll find the basic usage of this command:

gramep predict [OPTIONS]

This command allows you to leverage your trained classification model to predict the classes of new biological sequences. For detailed information on available options and how to use them effectively, utilize the --help flag:

gramep predict --help

Note: Models saved by classify depend on the scikit-learn version used to train them. Models trained with an earlier GRAMEP version are not supported by this release and must be retrained with gramep classify.

Citation

Pimenta-Zanon, M.H., Kashiwabara, A.Y., Vanzela, A.L.L. et al. GRAMEP: an alignment-free method based on the maximum entropy principle for identifying SNPs. BMC Bioinformatics 26, 66 (2025). https://doi.org/10.1186/s12859-025-06037-z

@article{PimentaZanon2025,
  title = {GRAMEP: an alignment-free method based on the maximum entropy principle for identifying SNPs},
  volume = {26},
  ISSN = {1471-2105},
  url = {http://dx.doi.org/10.1186/s12859-025-06037-z},
  DOI = {10.1186/s12859-025-06037-z},
  number = {1},
  journal = {BMC Bioinformatics},
  publisher = {Springer Science and Business Media LLC},
  author = {Pimenta-Zanon,  Matheus Henrique and Kashiwabara,  André Yoshiaki and Vanzela,  André Luís Laforga and Lopes,  Fabricio Martins},
  year = {2025},
  month = feb 
}
Acknowledgements
  • This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior - Brasil (CAPES) - Finance Code 001, the Fundação Araucária, Governo do Estado do Paraná/SETI (Grant number 035/2019, 138/2021 and NAPI - Bioinformática).

Metadata

Release files for gramep 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gramep 1.3.0
File Size Uploaded Provenance Actions
gramep-1.3.0.tar.gz 48.6 MB With provenance Details for gramep-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gramep 1.3.0
File Interpreter ABI Platform Actions
gramep-1.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details for gramep-1.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Total release size: 49.8 MB

Release files / gramep-1.3.0.tar.gz

Download URL gramep-1.3.0.tar.gz
Size 48.6 MB
Tags Source
SHA-256 checksum
How to use checksums
93248d1895f63989c8fc12ce6a58b4f13dd8709a88a0ea51b19ab3cfe5607ec5
BLAKE2b-256 checksum
How to use checksums
6c86adc85400eeb9174856ff766c8931d7bd246d8bf2876e657c8a44d23bc4df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / gramep-1.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gramep-1.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.2 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e51190ecffe9cfcafa2743722bff0cd115b3632a667a7475c86a241ece8f96f5
BLAKE2b-256 checksum
How to use checksums
0f28389998dce7f77ec97256ec17d49c885f1c5ea045c0be5edd02b573c1f23e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for gramep 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gramep-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page