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