Skip to main content

gTranslate

PyPI PyPI Downloads Bioconda BioConda Downloads

gTranslate is a machine learning-based command-line tool for predicting the translation table (TT) used by prokaryotic genomes. By analyzing specific sequence features — such as coding density differences, Trp ratios, and Gly ratios — gTranslate can accurately distinguish between the genetic codes associated with reassignment of the UGA stop codon, i.e. translation tables 11 (standard prokaryotic code), 4 (UGA=Trp), and 25 (UGA=Gly).

Features

  • Automated Table Detection: Rapidly predict the correct translation table for a single genome or large batches of genomes.
  • Interactive Visualizations: Generate dynamic HTML dashboards to explore the feature space used by the classifiers.

Documentation

Documentation for gTranslate can be found here.

Usage

gTranslate has seven subcommands:

  • detect_table and generate_plot to predict translation tables and explore the features used;
  • check_install and test to validate your installation (see Testing);
  • ground_truth, build_features and fit_models to train your own models.

You can view the general help menu at any time:

gtranslate -h

Detect table

The core pipeline for detecting the translation table used by prokaryotic organisms. You must provide input genomes either via a directory or a batch file.

Basic Usage:

# Process a directory of genomic FASTA files
gtranslate detect_table --genome_dir /path/to/genomes --out_dir /path/to/output

# Process genomic FASTA files defined in a batch file
gtranslate detect_table --batchfile genomes.tsv --out_dir /path/to/output

The file provided to --batchfile is a two-column, tab-separated values (TSV) file that indicates the path to the genomic FASTA file and the desired genome identifier, e.g.:

/example/path/GCF_001729785.1_ASM172978v1/GCF_001729785.1.fna.gz	G001729785
/a/different/path/GCF_043834535.1.fna.gz	G043834535
...

Generate plot (optional)

Generates an interactive HTML dashboard to visually explore the features (e.g., coding density difference, amino acid ratios) used by gTranslate to predict the translation table.

Basic Usage:

gtranslate generate_plot --feature_file /path/to/output/gtranslate.feature_summary.tsv --output_file dashboard.html

The file gtranslate.feature_summary.tsv provided to --feature_file is generated by the detect_table command.

Testing

Validation that gTranslate has been installed correctly and is operating as expected can be done using the check_install and test subcommands:

Check installation

Verifies that all third-party software is on the system path and that the model files are present in the directory pointed to by GTRANSLATE_MODEL_PATH.

Basic Usage:

gtranslate check_install

Test operation of gTranslate

Runs detect_table on three bundled genomes (one each for translation tables 4, 11 and 25) to validate that gTranslate is functioning correctly on your system. The models must be downloaded and GTRANSLATE_MODEL_PATH set before running this command.

Basic Usage:

gtranslate test --cpus 4

Note: If --out_dir is not specified, the test will securely execute in a temporary directory.

Metadata

Release files for gtdb-gtranslate 0.0.7

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

Source distribution (sdist)

Source distribution for gtdb-gtranslate 0.0.7
File Size Uploaded Provenance Actions
gtdb_gtranslate-0.0.7.tar.gz 2.1 MB With provenance Details for gtdb_gtranslate-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gtdb-gtranslate 0.0.7
File Interpreter ABI Platform Actions
gtdb_gtranslate-0.0.7-py3-none-any.whl Python 3 none any Details for gtdb_gtranslate-0.0.7-py3-none-any.whl

Total release size: 4.2 MB

Release files / gtdb_gtranslate-0.0.7.tar.gz

Download URL gtdb_gtranslate-0.0.7.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
3ff5db6916d74049fea7e428d878db7eafa505ae84f93185e115159d5bee5f8b
BLAKE2b-256 checksum
How to use checksums
035518ecd3ce2efbc89c0066f7d9d1334e8bc6a523d716724659cf8a02fb1d4d
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 24, 2026.

Transparency log

Release files / gtdb_gtranslate-0.0.7-py3-none-any.whl

Download URL gtdb_gtranslate-0.0.7-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9ae50f3e4884d47fb0d0a04aa33b0794dc0f8d29ed5990f7b6a39a40e029a6e3
BLAKE2b-256 checksum
How to use checksums
563377626eac9f0c8c02ca149112bdcec85baaeafc412b123c9f25b6e481461b
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 24, 2026.

Transparency log

Security for gtdb-gtranslate 0.0.7

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 gtdb_gtranslate-0.0.7.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 24, 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