powered by
With data on the continuous crossover location information produced by sim_from_pedigree, grab the genotype at a given position.
get_geno(xodat, position)
A numeric matrix with two columns: the maternal and paternal allele for each individual.
The sort of detailed genotype/XO data generated by sim_from_pedigree()
sim_from_pedigree()
Position (in cM) for which to obtain genotypes
sim_from_pedigree(), convert2geno()
convert2geno()
# simulate AIL pedigree tab <- sim_ail_pedigree(12, 30) # simulate data from that pedigree dat <- sim_from_pedigree(tab) # get genotype at position 30 cM geno <- get_geno(dat, 30)
Run the code above in your browser using DataLab