|
1 | 1 | # gTranslate |
2 | 2 |
|
3 | | -**gTranslate** is a machine learning-based command-line tool designed to automatically detect and predict the genetic translation table (GTT) used in prokaryotic genomes. |
4 | | - |
5 | | -By analyzing specific sequence features—such as coding density differences, Trp ratios, and Gly ratios—`gTranslate` utilizes advanced classifiers to accurately distinguish between different genetic codes, particularly focusing on the identification of recoding events associated with Translation Tables 11, 4 (UGA=Trp), and 25 (UGA=Gly). |
| 3 | +**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). |
6 | 4 |
|
7 | 5 | ## Features |
8 | 6 |
|
9 | | -* **Automated Table Detection:** Rapidly predict the correct genetic translation table for single genomes or large batches. |
| 7 | +* **Automated Table Detection:** Rapidly predict the correct translation table for a single genome or large batches of genomes. |
10 | 8 | * **Interactive Visualizations:** Generate dynamic HTML dashboards to explore the feature space used by the classifiers. |
11 | 9 |
|
| 10 | +## Installation |
| 11 | + |
| 12 | +... TBD ... |
| 13 | + |
12 | 14 | ## Usage |
13 | 15 |
|
14 | | -gTranslate is operated via four primary subcommands: `detect_table`, `generate_plot`, `test`, and `check_install`. |
| 16 | +gTranslate is operated via two subcommands: `detect_table` and `generate_plot`. |
15 | 17 |
|
16 | 18 | You can view the general help menu at any time: |
17 | 19 | ```bash |
18 | 20 | gtranslate -h |
19 | 21 | ``` |
20 | 22 |
|
21 | | -### 1. `detect_table` |
22 | | -The core pipeline for detecting the genetic translation table in prokaryotic organisms. You must provide input genomes either via a directory or a batch file. |
| 23 | +### Detect table |
| 24 | +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. |
23 | 25 |
|
24 | 26 | **Basic Usage:** |
25 | 27 | ```bash |
26 | | -# Process a directory of FASTA files |
| 28 | +# Process a directory of genomic FASTA files |
27 | 29 | gtranslate detect_table --genome_dir /path/to/genomes --out_dir /path/to/output |
28 | 30 |
|
29 | | -# Process genomes defined in a batch file |
| 31 | +# Process genomic FASTA files defined in a batch file |
30 | 32 | gtranslate detect_table --batchfile genomes.tsv --out_dir /path/to/output |
31 | 33 | ``` |
32 | 34 |
|
33 | | -### 2. `generate_plot` |
34 | | -Generates an interactive HTML dashboard to visually explore the features (e.g., Coding Density Difference, amino acid ratios) used for GTT prediction. |
| 35 | +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.: |
| 36 | +``` |
| 37 | +/example/path/GCF_001729785.1_ASM172978v1/GCF_001729785.1.fna.gz G001729785 |
| 38 | +/a/different/path/GCF_043834535.1.fna.gz G043834535 |
| 39 | +... |
| 40 | +``` |
| 41 | + |
| 42 | +### Generate plot (optional) |
| 43 | +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. |
35 | 44 |
|
36 | 45 | **Basic Usage:** |
37 | 46 | ```bash |
38 | 47 | gtranslate generate_plot --feature_file features.tsv --output_file dashboard.html |
39 | 48 | ``` |
40 | 49 |
|
41 | | -### 3. `test` |
42 | | -Runs the built-in test suite on bundled genomic data to validate that the GTT detection pipeline is functioning correctly on your system. |
| 50 | +The file `features.tsv` provided to `--feature_file` is generated by the `detect_table` command. |
43 | 51 |
|
44 | | -**Basic Usage:** |
45 | | -```bash |
46 | | -gtranslate test --cpus 4 |
47 | | -``` |
48 | | -*Note: If `--out_dir` is not specified, the test will securely execute in a temporary directory.* |
| 52 | +## Testing |
| 53 | + |
| 54 | +Validation that gTranslate has been installed correctly and is operating as expected can be done using the `check_install` and `test` subcommands: |
49 | 55 |
|
50 | | -### 4. `check_install` |
| 56 | +### Check installation |
51 | 57 | Verifies your installation and ensures that all required dependencies and reference data files are correctly configured and present. |
52 | 58 |
|
53 | 59 | **Basic Usage:** |
54 | 60 | ```bash |
55 | 61 | gtranslate check_install |
56 | 62 | ``` |
57 | 63 |
|
| 64 | +### Test operation of gTranslate |
| 65 | +Runs the built-in test suite on bundled genomic data to validate that gTranslate is functioning correctly on your system. |
| 66 | + |
| 67 | +**Basic Usage:** |
| 68 | +```bash |
| 69 | +gtranslate test --cpus 4 |
| 70 | +``` |
| 71 | +*Note: If `--out_dir` is not specified, the test will securely execute in a temporary directory.* |
0 commit comments