Skip to contents

Convert lfmm/geno matrix to dosage matrix (N.B.: this only works for diploids!)

Usage

geno_to_dosage(geno)

Arguments

geno

matrix of LEA geno or lfmm format (i.e., 0 corresponds to zero reference alleles)

Value

matrix encoded as dosage type object (0 corresponds to two reference alleles)

See also

Other Imputation functions: gen_to_geno(), simple_impute(), snmf_bestK(), snmf_crossent_helper(), str_impute()