pedConvertCpp function

Convert ped genotypes to 0/1

Convert ped genotypes to 0/1

This is a utility function, that convert ped genotypes (AA/AB/BB) into 0/1 (either homozygous/heterozygous)

pedConvertCpp(genotype)

Arguments

  • genotype: vector of pair of genotypes (01, AA, AG)

Returns

converted vector of genotypes (0/1)