markers
|
list of raw marker inputs. Provide one of:
-
snp_add: numeric matrix (n x m), genotype coded 0/1/2
-
mh_add: list of data.frames, one per chromosome, with paired haplotype columns per block
|
y
|
numeric named vector of phenotypes (length n). Names must match row names of marker matrix.
|
masreml_fit
|
fitted masreml object from masreml(). Used to account for population structure in the GWAS model. Must be fitted with the same markers and individuals.
|
X
|
fixed effects design matrix (n x c). If NULL, intercept only.
|
pi
|
numeric, prior probability that a marker has a non-zero effect (default 0.001). Lower values make posterior probabilities more conservative.
|
window
|
integer, number of adjacent markers used in moving average smoothing of likelihood ratios (default 5). Larger values produce smoother posterior probabilities.
|
ref_markers
|
list of raw marker data for training individuals only, in the same format as markers. If provided, allele frequencies for building G_u (used in EMMAX) are computed from ref_markers instead of markers. Use this when running GWAS in a train/test context to avoid data leakage from test individuals into the population structure correction matrix. Supported elements: snp_add (matrix) or mh_add (list). If NULL (default), allele frequencies are computed from markers.
|