Skip to contents

Convert dosage matrix or vcf to geno type object (N.B.: this only works for diploids!)

Usage

gen_to_geno(gen)

Arguments

gen

a dosage matrix, an object of class 'vcfR', or an object of type snmfProject

Value

matrix encoded as geno type object

See also

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