MATPredict
Find and type the mating-type (MAT) locus in a fungal genome, with the genes that flank it, from an assembly or from raw reads.
Run MATPredict in BrowserExplore results by taxon
How it works
Every reference record in the database traces to a publication or a validated deposit. MATPredict searches a genome with the reference proteins of the MAT genes and their conserved flank genes, builds gene models at the best hits, and decides whether the result is a real MAT locus.
- Route. The NCBI taxid selects the curated families for that lineage. With no match the genome falls back to the whole phylum, or is reported as not searched.
- Search. Translated search (tblastn on a genome, diamond on a proteome) with the core MAT genes plus flank genes (for example APN2, SLA2, COX13 in Pezizomycotina; tptA, rnhA, algA, glrA in Mucorales).
- Cluster. Hits become candidate loci per contig, using lineage-specific gap rules.
- Polish. exonerate or miniprot builds gene models in a window around each candidate (at most 6 loci per family).
- Verify. A candidate must pass the checks below, or it is withheld and the reason is recorded.
- Type. The idiomorph comes from gene content (for example MAT1-1-1 versus MAT1-2-1) or, in Mucoromycota, from a profile-HMM classifier (sexP = Plus, sexM = Minus). Each call gets a margin and a confidence tier.
Output per genome: detection_report.yaml (calls, evidence, withheld loci, reason for any uncalled genome, two-idiomorph flag), detected_loci.gff3 and optional FASTA.
Checks and confidence
The checks trade recall for precision. Each is a decision recorded in the project's analysis notes with the test that set it.
| Check | What it tests |
|---|---|
| Modelled-gene bar | The best cluster must carry a minimum number of polished gene models. Clusters below it are withheld (for example "carried 1 modelled gene, below the 2 required"). |
| MAT-gene check | A locus needs a MAT gene typed by the classifier at or above its bit-score floor (about 100 bits), or at least two flank genes modelled at 40% or more. Fragments need flanks. Removes paralog look-alikes. |
| Flank-carried rule | A call that rests only on flank hits needs a core-gene hit above a bit-score floor (39 bits); this removed 52 of 52 known artefacts in the audit while keeping 7 of 8 real loci. |
| Paralog class | When a family has several real gene copies, paralogs are separated from the MAT copy and withheld or reported as such. |
| CAAX check (Basidiomycota) | Pheromone-receptor calls that depend on a strict CAAX motif scan are labelled unverified. They are counted but kept apart from verified calls. |
| Typing margin | The margin between the best and the runner-up idiomorph is reported with every call. The Mucoromycota classifier applies a margin floor (25 bits) and a score floor, and unresolved cases are reported as undetermined. |
| Confidence tier | high: all expected core genes found, plus at least one flank gene in the same cluster (families without flank genes need all core genes in a consistent order). medium: some but not all expected genes, a core gene found only by the relaxed second pass, or flanks without a confirmed core gene; also a high call that fails the modelled-gene bar. low: a single gene hit with nothing else nearby. |
| Locus class | mat_locus (genes plus expected flank structure), partial_locus, idiomorph_gene_only, homothallic_candidate (both idiomorphs at one locus). |
| Two idiomorphs | Both idiomorphs in one genome is flagged for review. It can mean homothallism, silent mating cassettes (Saccharomycotina), a hybrid or mixed assembly, not only a true two-allele genome. |
Results across NCBI public genomes and ZyGoLife
Three NCBI public genomes datasets and two held-out ZyGoLife sets, one pipeline version. The headline numbers above count NCBI public genomes only; the held-out sets are shown as their own rows, labelled “held out”. NCBI public genomes are the fungal genome assemblies downloaded from NCBI (genome collection, 2026 run); ZyGoLife LCG and Jena are Mucoromycotina sets that were held out from training and curation.
Genomes with a MAT call
Confidence of each locus
What kind of locus was found
Which MAT alleles, and how often
Share of called genomes by allele, as the pipeline names it. Allele names differ by lineage (MAT1-1/MAT1-2, MATa/MATalpha, Plus/Minus, and others) and are not merged here. The explorer adds a label to each name, Lineage__System_Cell (for example Taphr__SchPom_M, Sacch__CanAlb_alpha, Peziz__AspFum_MAT1-1, Mucor__PhyBla_plus): the lineage, the reference organism whose panel matched (a frozen code, not a claim about the species), and the cell type; the raw name stays in the tooltip. Basidiomycota calls are mostly the locus type (HD, PR) with the allele undetermined; see the explorer for locus types.
Call rate by Ascomycota class
Call rate by Basidiomycota order
Classes and orders with 50 or more genomes. Low rates mark clades without their own curated record (phylum fallback), such as Orbiliomycetes and Dipodascomycetes, rather than clades without a MAT locus. Family, genus and species breakdowns, with allele frequencies, are in the explorer.
Performance on benchmarks
| Test | n | Result | Note |
|---|---|---|---|
| Zygo 23 (Mucorales, held out) | 23 | 23/23 locus, 23/23 idiomorph | Saturated; no longer separates rules. notes |
| ZyGoLife Jena (held out) | 64 | 61 called | Scaffold and contig input gave the same call in 63/63. |
| ZyGoLife LCG (held out) | 621 | 548 called (88%) | Strains with curator labels: see held-out notes for tiers and disputed labels. |
| Classifier typing (Mucoromycota) | 540 | 0 wrong | Full-protein score of 100 bits or more separated MAT genes from paralogs (96/108 vs 9/189). |
Definitive run against v0.8.1 (v0.9.0, commit 7d73be5) | 23,579 | Calls, loci and gene models unchanged except where noted: 1 locus span (GCA_052323795.1, outer span +16.7 kb), 3 Pneumocystis genomes gain matMi, 2 genomes keep both calls at one locus | Tier and label changes come from the new report rules and are listed per genome: 108 loci become undetermined by the short-fragment vote (#138), 23 high to medium by the weak-flank cap (#129), 202 Basidiomycota high to medium by the single-region cap (#167), 10 scope labels (#170). A 60-genome sample run twice agreed as gene sets. |
Definitive run against v0.8.0 (v0.8.1, commit 50bc950) | 23,570 | 23,214 identical in calls, confidence and gene models; 356 differ | Every difference traced by a control run to a v0.8.1 change: the S. pombe silent-pair split (37 genomes), the Hyphopichia MTLA1 record (302 genomes: 190 with a changed span, tier or call, 112 with gene models only) and the fallback after withheld hits (17 genomes, each newly called: 7 Ascomycota, 10 Basidiomycota). The nine rust genomes newly searched are not counted. A 58-genome sample run twice gave 0 differences. |
A. fumigatus assemblies, detect | 297 | 288 agree (97.0%) | Truth = BLAST of idiomorph regions. Reports one idiomorph for the 8 assemblies holding both. |
There are no truth tables for the NCBI public genomes, so their results are recovery (call) rates, not accuracy. Several thresholds were tuned on small panels; the notes say which.
Typing from raw reads
Results for 112 fungal species from public read sets, with a report for each, are on the Raw reads page.
When a good reference panel exists for a species, matpredict reads-type calls the idiomorph of a strain from its reads, with no assembly. It counts k-mers (k = 31) found in only one idiomorph reference, uses the k-mers shared by both flanks as a single-copy depth control, and calls one idiomorph, both, none or low_depth.
Results, with a report for each dataset, are on the Raw reads page: the curated collections (Fola, Aspergillus fumigatus, Coccidioides) and 112 species typed from public runs. Planned: Verticillium beyond the public-run sample, Cryptococcus (a large rearranged locus needs its own panel design).
Caveats: the cut-offs (50% breadth fraction, 100-base unique-run filter) were set after seeing the Fola and A. fumigatus results, so those numbers are consistency checks, not independent tests. A reference that differs from the strain at about one base in 40 gives none. Details: Fola, A. fumigatus.
Curated collections: Fola and A. fumigatus
These results describe the v0.7.0 code (src/MATPredict/reads/ has not changed since 2026-10-07). The charts and tables below are written by scripts/build_site_data.py from committed tables; every number is a count from them.
Fusarium oxysporum f. sp. lactucae (Fola)
Rows are the truth (the samtools breadth call from the same reads); bars are the k-mer call. Table: reads_fola.tsv (148 strains: truth, k-mer call, breadths, depths, flags).
Simulated mixed samples
Aspergillus fumigatus
Rows are the assembly-BLAST truth (ambiguous: a partial hit; no_genome: a read set without an assembly; ambiguous and no_genome are left out of agreement counts); bars are the reads call. Table: reads_afum.tsv (every read set: truth, detect call and confidence, reads call, depths, flags).
From reads to a full locus: map, assemble, extend, process
K-mer typing says which idiomorph is present. To recover the locus itself from reads, the same panel seeds an assembly (tested on eight A. fumigatus strains; the steps are scripts, not yet a subcommand):
- Map. Map reads to the curated locus segments of each idiomorph (minimap2, short-read mode).
- Assemble. Assemble read pairs whose mate maps (SPAdes, careful mode).
- Extend. Map the contigs back to the reference and repeat for up to four rounds, so the locus grows into the flank genes.
- Process. Place the genes with a protein search on the read contigs, and run
detecton them for the standard report. Runningdetecton read contigs is the next step, not yet done.