read.madata(datafile=datafile, designfile=designfile, covM = covM,
arrayType=c("oneColor", "twoColor"),header=TRUE, spotflag=FALSE, n.rep=1, avgreps=0, log.trans=FALSE, metarow, metacol, row, col, probeid, intensity, matchDataToDesign=FALSE, ...)
TransformMethod
field will be set to "log2".madata
, which is a list of following
components:
fill.missing
to fill in
missing variable. Sometimes leading and trailing TAB in the text file
will bring problems, depends on the operating system. So user need to
be careful about that.fitmaanova
.fitmaanova
.# note that .CEL files are not distributed with the package, thus following
# code does not work. This shows how to read data from affy (or beadarray)
# package, when TAB delimited design file is ready.
## Not run:
# library(affy)
# beforeRma <- ReadAffy()
# rmaData <- rma(beforeRma)
# datafile <- exprs(rmaData)
# abf1 <- read.madata(datafile=datafile,designfile="design.txt")
#
# # make and read designfile (data.frame type R object) from R
# design.table <- data.frame(Array=row.names(pData(beforeRma)));
# Strain <- rep(c('Aj', 'B6', 'B6xAJ'), each=6)
# Sample <- rep(c(1:9), each=2)
# designfile <- cbind(design.table, Strain, Sample)
# abf1 <- read.madata(datafile, designfile=designfile)
#
# # read in a TAB delimited file with spot flag - for two color array
# # HAVE TO SPECIFY that the data is from two color array
# kidney.raw <- read.madata("kidney.txt", designfile="kidneydesign.txt",
# metarow=1, metacol=2, col=3, row=4, probeid=6,
# intensity=7, arrayType='twoColor',log.trans=T, spotflag=T)
# ## End(Not run)
Run the code above in your browser using DataLab