FSFHap stage 3: 5-state EM imputation for one family x chromosome
Source:R/fsfhap.R
dot-fsfhap_impute.RdThin wrapper over fsfhap_impute_five_state_cpp() — the real FSFHap imputation
(via TASSEL's ViterbiAlgorithmPlugin → imputeUsingViterbiFiveState), then
fsfhap_fill_gaps_cpp() (fillGapsInAlignment) if fill_gaps. Runs on the
parent-called A/het/C frame from .fsfhap_call_parents_bc().
Arguments
- G
Integer matrix, taxa x sites, parent-called
gin{0,1,2,3}.- pos
Integer marker positions (bp), length = ncol(G).
- phet
Expected heterozygosity. Design-derived, no default — the caller supplies
(1 - F)/2from the pedigree inbreeding coefficient (BC1S4 F=0.9375 → 0.03125), mirroring TASSEL'sViterbiAlgorithmPlugin.- max_iter
EM iteration cap (TASSEL 50).
- fill_gaps
Forward-fill missing runs between equal flanking calls.