Description Usage Arguments Value Author(s) See Also Examples
Gets a list of items each containing spot indices for a group.
1 2 |
groups |
An optional |
Returns a list
of length nbrOfGroups(this)
.
Henrik Bengtsson (http://www.braju.com/R/)
*indexOf()
, *setId()
.
For more information see GeneGroups
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | SMA$loadData("mouse.data")
layout <- Layout$read("MouseArray.Layout.dat", path=system.file("data-ex", package="aroma"))
replicates <- GeneGroups(layout)
raw <- RawData(mouse.data, layout=layout)
# Get the signal (here by default non-background corrected)
ma <- getSignal(raw)
normalizeWithinSlide(ma, "m")
normalizeAcrossSlides(ma)
print(replicates)
cat("Calculating the standardized residuals...")
idx <- getSpots(replicates)
M <- ma$M # To improve speed!
residuals <- lapply(idx, FUN=function(i) {
x <- M[i,]; ok <- !is.na(x)
c <- median(x[ok]); s <- mad(x[ok], center=c)
x <- (x-c)/s
attr(x, "center") <- c; attr(x, "scale") <- s
x
})
for (k in seq(idx)) M[idx[[k]],] <- residuals[[k]]
cat("done\n")
ma.res <- clone(ma)
ma.res$M <- M
subplots(ma)
for (s in seq(ma))
plotSpatial(ma.res, slide=s)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.