How deepomicslab/spechla works
SpecHLA is a sequencing-based HLA typing and loss-of-heterozygosity (LOH) product. Its documented user workflow accepts paired-end reads, optionally combined with long, Hi-C, or 10X data, and produces diploid HLA typing; related documented modes include read extraction, assembly-based typing, and LOH detection. The sampled C++ executable provides a visible phasing entry point and supporting data components. Most high-level workflows are documented in the README but their driver scripts are absent from this file tree, so those links are documentation-based rather than inferred calls.
Main entry points: script Typing modes · phaser.h Phaser · results.h Typing results · main.cpp SpecHap entry
Components 20
Typing workflows
- Typing modes
script - Assembly typing
script
Phasing core
- SpecHap entry
bin/SpecHap/main.cpp - Phaser
bin/SpecHap/phaser.h - Fragment I/O
bin/SpecHap/frag_io.cpp - Spectral method
bin/SpecHap/spectral.cpp - Phasing graph
bin/SpecHap/graph.cpp - HLA type model
bin/SpecHap/type.h
Read processing
- HLA read extraction
bin/extractHairs - HLA fragment extraction
bin/SpecHap/hairs-src/hapfragments.c - BAM reader
bin/SpecHap/barcode_extractor/BAMReader.h - Barcode extraction
bin/SpecHap/barcode_extractor/worker.cpp - Hi-C support
bin/SpecHap/hic_util.cpp - 10X support
bin/SpecHap/tenx_util.cpp
Typing outputs
- Typing results
bin/SpecHap/results.h - LOH detection
script - Diploid HLA sequences
Other components
- Sequencing user
- Read inputs
- BAM/CRAM inputs
Connections 17
- Sequencing user → Typing modes: runs mode
- Sequencing user → Assembly typing: provides assembly
- Read inputs → Typing modes: supplies reads
- BAM/CRAM inputs → HLA read extraction: provides alignments
- HLA read extraction → HLA fragment extraction: extracts reads
- Typing modes → SpecHap entry: invokes phasing
- SpecHap entry → Phaser: constructs
bin/SpecHap/main.cpp - Phaser → Fragment I/O: uses fragments
- Phaser → Spectral method: phases variants
- Phaser → Phasing graph: uses graph
- Phaser → HLA type model: uses type model
bin/SpecHap/phaser.h - BAM reader → Barcode extraction: supports extraction
- Typing modes → Hi-C support: accepts Hi-C
- Typing modes → 10X support: accepts 10X
- Typing modes → Typing results: produces typing
- Typing results → Diploid HLA sequences: reports sequences
- Typing results → LOH detection: supplies typing results