How illumina/expansionhunter works
Expansion Hunter estimates repeat sizes and analyzes variation at targeted genomic loci from BAM/CRAM reads. Its principal workflow loads run parameters, a reference and locus catalog; constructs locus specifications and sequence graphs; analyzes reads and genotypes repeat or small-variant findings; then writes result files. The README documents read evidence spanning, flanking, or contained within repeats. Some sample-analysis and genotyping connections are only partially visible in the supplied excerpts, so those links are marked unverified rather than asserted as direct calls.
Main entry points: LocusAnalyzer.cpp Locus analyzer · VariantFindings.cpp Variant findings · sample Sample analysis · LocusAligner.cpp Locus alignment
Components 22
Inputs and setup
- Parameter loading
ehunter/io/ParameterLoading.cpp - Locus catalog
ehunter/io/CatalogLoading.cpp - Locus decoding
ehunter/io/LocusSpecDecoding.cpp - Graph blueprint
ehunter/io/GraphBlueprint.cpp
Locus analysis
- Sample analysis
ehunter/sample - Locus analyzer
ehunter/locus/LocusAnalyzer.cpp - Locus alignment
ehunter/locus/LocusAligner.cpp - Alignment operations
ehunter/alignment/OperationsOnAlignments.cpp - Alignment intersection
ehunter/alignment/GreedyAlignmentIntersector.cpp
Findings and inference
- Repeat analysis
ehunter/locus/RepeatAnalyzer.cpp - Small-variant analysis
ehunter/locus/SmallVariantAnalyzer.cpp - STR alignment
ehunter/genotyping/StrAlign.cpp - STR genotyping
ehunter/genotyping/StrGenotyper.cpp - Small-variant genotyping
ehunter/genotyping/SmallVariantGenotyper.cpp - RFC1 motif analysis
ehunter/locus/RFC1MotifAnalysis.cpp - Variant findings
ehunter/locus/VariantFindings.cpp
Result outputs
- Alignment output
ehunter/io/BamletWriter.cpp - VCF output
ehunter/io/VcfWriter.cpp - JSON output
ehunter/io/JsonWriter.cpp
Other components
- Analyst
- BAM / CRAM
- Reference genome
Connections 23
- Analyst → Parameter loading: supplies options
- Analyst → BAM / CRAM: provides reads
- Reference genome → Locus decoding: provides sequence
ehunter/io/LocusSpecDecoding.cpp - Parameter loading → Sample analysis: configures run
- Locus catalog → Locus decoding: supplies loci
- Locus decoding → Graph blueprint: uses graph blueprint
ehunter/io/LocusSpecDecoding.cpp - Sample analysis → Locus analyzer: analyzes loci
- Sample analysis → BAM / CRAM: searches reads
- Locus analyzer → Locus alignment: constructs aligner
ehunter/locus/LocusAnalyzer.cpp - Locus analyzer → Repeat analysis: creates analyzer
ehunter/locus/LocusAnalyzer.cpp - Locus analyzer → Small-variant analysis: creates analyzer
ehunter/locus/LocusAnalyzer.cpp - Locus analyzer → RFC1 motif analysis: runs analysis
ehunter/locus/LocusAnalyzer.cpp - Locus alignment → Alignment operations: uses operations
- Alignment operations → Alignment intersection: uses intersection
ehunter/alignment/OperationsOnAlignments.cpp - Repeat analysis → STR genotyping: estimates genotype
- STR genotyping → STR alignment: uses STR alignments
- Small-variant analysis → Small-variant genotyping: estimates genotype
- Locus analyzer → Variant findings: produces findings
- RFC1 motif analysis → Variant findings: updates findings
ehunter/locus/RFC1MotifAnalysis.cpp - Variant findings → VCF output: formats results
- Variant findings → JSON output: writes results
- Locus alignment → Alignment output: writes alignments
- Analyst → VCF output: requests analysis