R/methods-SnpCnvFeatureSet.R

setMethod("rma", "SnpCnvFeatureSet",
          function(object, background=TRUE, normalize=TRUE, subset=NULL){
            sql <- paste("SELECT man_fsetid, fid FROM pmfeatureCNV")
            probeInfo <- dbGetQuery(db(object), sql)
            probeInfo <- probeInfo[order(probeInfo[["man_fsetid"]]),]
            pms <- exprs(object)[probeInfo[["fid"]],,drop=FALSE]
            exprs <- basicRMA(pms, probeInfo[["man_fsetid"]], normalize, background)
            out <- new("ExpressionSet",
                       phenoData = phenoData(object),
                       annotation = annotation(object),
                       experimentData = experimentData(object),
                       exprs = exprs)
            return(out)
          })
benilton/oligo-release documentation built on May 12, 2019, 10:59 a.m.