get_geno: Get genotype at a single position

View source: R/get_geno.R

get_genoR 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 sim_from_pedigree()

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)

simcross documentation built on May 29, 2024, 2:41 a.m.