get_geno {simcross} | R Documentation |
Get genotype at a single position
Description
With data on the continuous crossover location information produced by sim_from_pedigree, grab the genotype at a given position.
Usage
get_geno(xodat, position)
Arguments
xodat |
The sort of detailed genotype/XO data generated by
|
position |
Position (in cM) for which to obtain genotypes |
Value
A numeric matrix with two columns: the maternal and paternal allele for each individual.
See Also
sim_from_pedigree()
, convert2geno()
Examples
# 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)
[Package simcross version 0.6 Index]