Description Usage Arguments Value Author(s) See Also Examples
Within-slide normalization that adjust the channel bias with the objective to minimize intensity dependency of the log-ratios.
1 2 |
slides |
The slides which should be included in the calculations.
If |
groupBy |
|
method |
|
interval |
The interval of possible shifts.
Either a |
... |
Currently not used. |
Returns a list
structure containing information about the fit etc.
Henrik Bengtsson (http://www.braju.com/R/)
For more information see MAData
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | SMA$loadData("mouse.data")
layout <- Layout$read("MouseArray.Layout.dat", path=system.file("data-ex", package="aroma"))
raw <- RawData(mouse.data, layout=layout)
methods <- c("Kerr", "Bengtsson")
Alim <- c(6,16)
Mlim <- c(-1,1)*3
subplots(2*length(methods))
for (method in methods) {
ma <- getSignal(raw, bgSubtract=TRUE)
fit <- normalizeAffineShift(ma, method=method, slide=1)
a <- fit$shift[1,1]
msg <- sprintf("Optimal shift according to '", method, "' is a = %1.f.\n", a)
cat(msg)
plot(ma, xlim=Alim, ylim=Mlim)
lowessCurve(ma)
x <- seq(-2*a,2*a, length=200)
y <- sapply(x, FUN=fit$objectiveFunction, R=getR(ma),G=getG(ma))
plot(x,y, pch=176, xlab="shift", ylab="objective");
lines(x,y)
abline(v=a)
} # for (method ...)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.