Learn R Programming

simcross (version 0.6)

get_geno: 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)

Value

A numeric matrix with two columns: the maternal and paternal allele for each individual.

Arguments

xodat

The sort of detailed genotype/XO data generated by sim_from_pedigree()

position

Position (in cM) for which to obtain genotypes

See Also

sim_from_pedigree(), convert2geno()

Examples

Run this code
# 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