RMA on a Data frame or a matrix
2
0
Entering edit mode
Khan, Sohail ▴ 490
@khan-sohail-1137
Last seen 9.7 years ago
Dear List, I was wondering if RMA function can be applied to a data frame or a matrix?? Thanks. -Sohail
• 2.2k views
ADD COMMENT
0
Entering edit mode
@kasper-daniel-hansen-2979
Last seen 10 months ago
United States
On Sep 6, 2007, at 12:51 PM, Khan, Sohail wrote: > Dear List, > > I was wondering if RMA function can be applied to a data frame or a > matrix?? > Thanks. What exactly do you mean by that. For the entire algortihm (background correction, normalization and summarization) you need to keep track of probesets - ie. groups of probes targeting the same gene. This is only really necessary for the summarization though. Where do you have such information? You can certainly hack the functions to work and the background correction and normalization works without problem on a matrix - did you check? Kasper
ADD COMMENT
0
Entering edit mode
@michal-blazejczyk-2231
Last seen 9.7 years ago
> Dear List, > > I was wondering if RMA function can be applied to a data frame or a matrix?? > Thanks. > > -Sohail Hi, If your matrix contains the intensity data from actual microarrays, this is a function you could use (or leverage): # # intensity and intensitySD are objects equivalent to matrices. # They should contain probe intensities in rows and samples in # columns. Probe intensities should be ordered the same way they # are in a .CEL file. # chipType is a string containing the chip type (see function # cleancdfname()). # chipSizeX and chipSizeY specify the number of features on the chip. # CreateAffyBatch <- function( intensity, intensitySD, chipType, chipSizeX, chipSizeY ) { exprs <- data.matrix( intensity ) se.exprs <- data.matrix( intensitySD ) sampleIndices <- 1 : ncol( exprs ) sampleNames <- paste( "sample", sampleIndices, sep = "" ) colnames( exprs ) <- sampleNames colnames( se.exprs ) <- sampleNames phenoData.data <- as.data.frame( sampleIndices ) rownames( phenoData.data ) <- sampleNames colnames( phenoData.data ) <- "sample" if( length( findClass( "AnnotatedDataFrame" ) ) == 1 ) { phenoData <- new( "AnnotatedDataFrame", data = phenoData.data ) phenoData at varMetadata[[1]] <- "arbitrary numbering" } else { phenoData <- new( "phenoData", pData = phenoData.data, varLabels = list( sample = "arbitrary numbering" ) ) } affyBatch <- new( "AffyBatch", exprs = exprs, se.exprs = se.exprs, cdfName = chipType, annotation = cleancdfname( chipType, addcdf = FALSE ), ncol = chipSizeX, nrow = chipSizeY, phenoData = phenoData ) return( affyBatch ) }
ADD COMMENT

Login before adding your answer.

Traffic: 412 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6