
Last chance! 50% off unlimited learning
Sale ends in
shearRawSignal(BSData, plot = FALSE, newFigure = plot,
normOpts = setNormOptions(), maxPlots = 72, ...)normalizeIllumina(rawData, indTrain = rep(TRUE, length(rawData$x)),
normOpts = setNormOptions(), plot = FALSE, xylim = NULL,
verbose = FALSE)
"BeadSetIllumina "
objectTRUE
, a scatter-plot including the estimated homozygote
asymptotes is produced for each array in BSData
FALSE
, an error will be produced if more than
one array is specifiedsetNormOptions
normalizeIllumina
plot
, these are the c(xLow,xHigh,yLow,yHigh)
coordinates of the axesTRUE
, the offset and slope of both asymptotes are printed"BeadSetIllumina "
object from
shearRawSignal
, or a list containing normalized signal from
normalizeIllumina
. The normalized red and green signal is
transformed such that the shearRawSignal
is usually used as a wrapper for
normalizeIllumina
. Even more commonly,
preprocessBeadSet
is used as a wrapper for both.These functions perform an affine transformation which is similar to in
Illumina's software (Peiffer et al., 2006),
and it differs only in how the homozygote asymptotes are estimated. Both
axes are divided into a number of bins as specified by
normOpts$nBins
. The points specified by
the quantile normOpts$prob
in each bin exceeding
normOpts$minSize
points are used for a least squares fit of
homozygote asymptotes. If normOpts$shearInf1
is TRUE
, only
Infinium I beads are used, and the quantiles are based on all points
in the bins. Otherwise, all points are used, however the quantile is
based on the normOpts$minSize
smallest values only.
In the plot, the red and green lines give the estimated
preprocessBeadSet
, setNormOptions
#Make artificial, heteroscedastic data
x1 <- 5 + exp(rnorm(1000))*100
y1 <- 100 + x1*.1 + x1*rnorm(1000,sd=.1)*.2
y2 <- 100 + exp(rnorm(1000))*70
x2 <- (y2-5)/10 + (y2-100)*rnorm(1000,sd=.1)*.2
rawData <- list()
rawData$x <- c(x1,x2)
rawData$y <- c(y1,y2)
#Affine transformation
normData <- normalizeIllumina(rawData,plot=FALSE,verbose=TRUE)
#Affine transformation with plotting
dev.new()
normOpts <- setNormOptions(minSize=10)
normData <- normalizeIllumina(rawData,normOpts=normOpts,plot=TRUE,verbose=TRUE)
#After rotation and shearing
dev.new()
plot(normData$x,normData$y,pch='.',main='Affine transformation',xlab='R',ylab='G')
abline(v=0,h=0,col='blue')
Run the code above in your browser using DataLab