[BioC] extracting maRf from marrayRaw object

Laurent Gautier laurent at cbs.dtu.dk
Tue Dec 30 12:01:13 MET 2003


On Tue, Dec 30, 2003 at 02:22:12AM -0800, Mahbub Latif wrote:
> Hi,
> 
> How can I extract maRf (maGf) values for a specific
> printip from a marrayRaw class object?
> 
> Thanks in advance,
> 
> Mahbub.
> 

What about:

## example data: swirl
data(swirl)

getRfprinttip <- function(x, tip) {
  z <- maPrintTip(x)
  if (tip > max(z))
    stop("Tip number too high.")
  r <- maRf(x)[z == tip]
  return(r)
}

## values for print-tip #2
tmp <- getRfprinttip(swirl, 2)


Hoping it helps,


L.



-- 
--------------------------------------------------------------
Laurent Gautier			CBS, Building 208, DTU
PhD. Student			DK-2800 Lyngby,Denmark	
tel: +45 45 25 24 89		http://www.cbs.dtu.dk/laurent



More information about the Bioconductor mailing list