pathotypr¶
Lineage classification and marker-driven genotyping — from assemblies or raw reads.
pathotypr is a Rust toolkit that classifies microbial genomes into lineages and genotypes them against user-defined marker panels. It works with both assembled genomes (FASTA) and raw sequencing reads (FASTQ), runs on a single laptop, and ships with a native desktop GUI.

Five commands, one binary¶
| Command | What it does | Input |
|---|---|---|
train |
Build a Random Forest classifier from labeled genomes | FASTA |
predict |
Assign lineages using a trained model | FASTA + model |
classify |
Call known SNP markers in assemblies | FASTA + markers |
split-fastq |
Alignment-free genotyping from reads | FASTQ + markers |
match |
Find the closest reference genome | FASTQ + references |
Highlights¶
-
Organism-agnostic
Bring your own markers for any pathogen — nothing is hard-coded to a single organism.
-
Fast
Rust + SIMD gzip + parallel k-mers process a sample in roughly 1–2 seconds.
-
Desktop GUI
A native app built with Tauri — drag-and-drop files, no server required.
-
Excel + TSV output
Tabular results everywhere, with interactive visualizations in the GUI.
Quick start¶
Excel output
Add --excel to any command to also generate .xlsx files alongside the TSVs.
Where to next¶
-
Pre-built desktop apps, Bioconda, or build the CLI/GUI from source.
-
Detailed usage, options, and output formats for each subcommand.
-
Specifications for training FASTA, marker TSVs, and input lists.
-
The design and data structures behind each module.
Citation¶
If you use pathotypr, please cite:
Ruiz-Rodriguez P, Coscollá M. Pathotypr: harmonised MTBC lineage assignment and resistance-associated variant detection for genomic surveillance. bioRxiv (2026). doi: 10.64898/2026.03.24.714002
Software & markers DOI: 10.5281/zenodo.19210044
pathotypr is released under the GNU Affero General Public License v3.0.