Learn R Programming

QTLRel (version 0.2-9)

scanOne: Genome Scan for QTL

Description

Evaluate log-likelihood ratio test statistics or P-values at scanning loci along the genome.

Usage

scanOne(y, x, gdat, prdat=NULL, vc=NULL, intcovar=NULL,
   numGeno=FALSE, test=c("None","F","Chisq"),
   minorGenoFreq=0, rmv=TRUE)

Arguments

y
a numeric vector or a numeric matrix of one column (representing a phenotype for instance).
x
a data frame or matrix, representing covariates if not missing.
gdat
genotype data. Should be a matrix or a data frame, with each row representing an observation and each column a marker locus. The column names should be marker names. Optional if an object prdat from geno
prdat
an object from genoProb, or in the same form.
vc
an object from estVC or aicVC, or an estimated variance-covariance matrix induced by relatedness and environment.
intcovar
Covariates that interact with QTL.
numGeno
whether to treat numeric coding of genotypes as numeric.
test
"None", "F" or "Chisq".
minorGenoFreq
specify the minimum tolerable minor genotype frequency at a scanning locus if gdat is used.
rmv
a logical variable. If true, then the scanning locus will be skipped if the minor genotype frequency at the locus is smaller than minorGenoFreq. Otherwise, the scanning process will stop and return with NULL.

Value

  • A list with at least the following components:
  • pP-value at the snp (marker) if test is "F" or "Chisq", or the log-likelihood ratio statistic at the SNP (marker) if "test" is "None"
  • parametersestimated parameters at all scanning loci, including additive effect a and dominance effect d if prdat is not NULL

Details

The test at a scanning locus under the assumption of no QTL effect versus the assumption of QTL effect is performed by conditioning on the estimated polygenic genetic variance-covariance matrix. Normality is assumed for the random effects. It is possible to extend the Haley-Knott approach to multiple-allelic cases under the assumption that allele effects are all additive. Then, prdat should be provided and be of class "addEff".

References

Haley, C. S., and S. A. Knott (1992). A simple regression method for mapping quantitative trait loci in line crosses using flanking markers. Heredity 69: 315-324.

See Also

genoImpute and genoProb.

Examples

Run this code
data(miscEx)

# impute missing genotypes
gdat.imp<- genoImpute(gdat, gmap=genMap, step=Inf,
   gr=2, na.str=NA)

y<- rnorm(20)
x<- sample(c("Male","Female"),20,replace=TRUE)
# fake additive genetic matrix
v<- cov(matrix(rnorm(500*20),ncol=20))
# estimate variance components
o<- estVC(y, x, v = list(AA=v,DD=NULL,HH=NULL,AD=NULL,
   MH=NULL,EE=diag(20)))

# genome scan and plotting
pv<- scanOne(y=y, x=x, gdat=gdat.imp[,1:20], vc=o)
pv
plot(pv,gmap=genMap)

# Haley-Knott method
gdtmp<- (gdat=="AA") + (gdat=="AB")*2 + (gdat=="BB")*3
   gdtmp<- replace(gdtmp,is.na(gdtmp),0)
prDat<- genoProb(gdat=gdtmp, gmap=genMap, step=Inf,
   gr=2, method="Haldane", verbose=TRUE)
pv.hk<- scanOne(y=y, x=x, prdat=prDat, vc=o)
pv.hk
plot(pv.hk)

Run the code above in your browser using DataLab