getGeno: getGeno

Description Usage Arguments Details Value Author(s) Examples

View source: R/utils_shape.R

Description

Get genotypes in a cross at qtl positions

Usage

1
getGeno(cross, Q, add.only = FALSE)

Arguments

cross

A cross object containing genotypes and some phenotypes

Q

A data.frame containing chr and pos (similar to the output of summary.scanone)

add.only

An optional argument (Default: FALSE). If f2 cross, add.only=TRUE forces the output to be the expected number of B alleles (pure additive model)

Details

Function takes a cross object and a data.frame with 'chr' and 'pos' and returns genotype probabilities at the closest position in the genetic map.

Value

Function returns the genotype with updated phenotypes.

Author(s)

Nicolas Navarro

Examples

1
2
3
4
data(fake.bc)
fake.bc <- calc.genoprob(fake.bc)
Q <- data.frame(chr=1, pos=26)
geno <- getGeno(fake.bc, Q)

nnavarro/shapeQTL documentation built on April 30, 2021, 12:10 p.m.