Fit the RTIGER emission once (to reuse across per-chromosome decodes)
Source:R/rtiger.R
fit_rtiger.RdFits the faithful RTIGER EM (emission alpha/beta + transition) on ALL chains in
data (samples x chromosomes) and returns the fit, to be passed as
call_states(..., caller = "rtiger", rtiger_fit = <fit>). This keeps the joint
per-family emission while letting each chromosome be decoded in a separate,
low-memory call – e.g. a genome-scale sweep that would otherwise hold the whole
panel per worker. Decoding is per-chromosome regardless, so results are identical
to a single whole-family call.
Arguments
- data
Long observation table (
name, chr, pos, n_ref, n_alt), as forcall_states(). Filter to covered markers upstream if usingmin_reads.- rigidity
Integer RTIGER minimum run length.
- threads, seed
Passed to the fit (RcppParallel E-step; seeded init).