How gaius-augustus/braker4 works
BRAKER4 is a Snakemake genome-annotation pipeline: users provide a genome and evidence, and it produces protein-coding gene predictions with optional functional annotation, non-coding RNA predictions, and quality assessments. The documented prediction stages are GeneMark training, AUGUSTUS training/prediction, and TSEBRA merging, with preprocessing and postprocessing around them. The graph retains substantial indexed scripts as implementation components; their precise rule-level wiring is not established by the excerpts. Edges reflect README-documented relationships, not uninspected rule calls.
Main entry points: Snakefile Snakemake workflow · samples.csv Sample inputs · config.ini.example Run configuration · run_tsebra.smk TSEBRA merging
Components 29
Inputs and preprocessing
- Sample inputs
samples.csv - Run configuration
config.ini.example - Genome and evidence prep
rules/preprocessing - RNA-Seq selection
rules/preprocessing/run_varus.smk
Gene prediction
- Snakemake workflow
Snakefile - GeneMark evidence training
rules/genemark - AUGUSTUS training
rules/augustus_training - AUGUSTUS prediction
rules/augustus_predict - TSEBRA merging
rules/postprocessing/run_tsebra.smk - Spaln dispatcher
scripts/spaln_dispatcher.py
Postprocessing and outputs
- BUSCO gene rescue
scripts/best_by_compleasm.py - Agreement rescue
scripts/both_agree_rescue.py - Gene model normalization
scripts/normalize_gtf.py - Stop-codon repair
scripts/fix_in_frame_stop_codon_genes.py - UTR decoration
scripts/stringtie2utr.py - GFF3 conversion
rules/postprocessing/convert_to_gff3.smk - ENA export
scripts/gff3_to_ena.py - Protein extraction
scripts/getAnnoFastaFromJoingenes.py - Annotation results
Quality and reporting
- Hint support analysis
scripts/analyze_hint_support.py - Gene support summary
scripts/gene_support_summary.py - Gene set statistics
scripts/gene_set_statistics.py - Run report
scripts/generate_report.py - Training summary
scripts/training_summary.py
Optional annotation
- Noncoding RNA
rules/ncrna - Protein embeddings
scripts/generate_embeddings.py - FANTASIA summaries
scripts/fantasia_summary.py - ncRNA result merge
scripts/merge_ncrna_gff3.py
Other components
- Annotation user
Connections 30
- Annotation user → Sample inputs: provides samples
README.md - Annotation user → Run configuration: sets options
README.md - Sample inputs → Snakemake workflow: configures run
README.md - Run configuration → Snakemake workflow: configures run
README.md - Snakemake workflow → Genome and evidence prep: prepares inputs
README.md - Snakemake workflow → GeneMark evidence training: runs GeneMark
README.md - Snakemake workflow → AUGUSTUS training: trains AUGUSTUS
README.md - Snakemake workflow → AUGUSTUS prediction: runs prediction
README.md - Snakemake workflow → TSEBRA merging: merges predictions
README.md - Snakemake workflow → RNA-Seq selection: may select RNA-Seq
README.md - Snakemake workflow → Noncoding RNA: optionally predicts
README.md - Snakemake workflow → UTR decoration: adds UTRs
README.md - Snakemake workflow → GFF3 conversion: converts annotation
README.md - Snakemake workflow → BUSCO gene rescue: may rescue genes
README.md - TSEBRA merging → Annotation results: produces gene set
README.md - GFF3 conversion → Annotation results: exports annotation
README.md - Snakemake workflow → ENA export: can export
README.md - Snakemake workflow → Protein embeddings: optionally annotates proteins
README.md - Protein embeddings → FANTASIA summaries: summarizes GO results
scripts/fantasia_summary.py - Snakemake workflow → Hint support analysis: assesses evidence support
scripts/analyze_hint_support.py - Snakemake workflow → Gene support summary: summarizes gene support
README.md - Snakemake workflow → Gene set statistics: reports gene statistics
scripts/gene_set_statistics.py - Snakemake workflow → Run report: generates run report
scripts/generate_report.py - Snakemake workflow → Training summary: summarizes training
scripts/training_summary.py - Snakemake workflow → Agreement rescue: may rescue agreement
scripts/both_agree_rescue.py - Snakemake workflow → Gene model normalization: normalizes models
scripts/normalize_gtf.py - Snakemake workflow → Stop-codon repair: repairs models
scripts/fix_in_frame_stop_codon_genes.py - Snakemake workflow → Spaln dispatcher: dispatches alignments
scripts/spaln_dispatcher.py - Snakemake workflow → Protein extraction: extracts proteins
README.md - Noncoding RNA → ncRNA result merge: merges predictions
README.md