R/one.probeset.per.gene.R

Defines functions one.probeset.per.gene

Documented in one.probeset.per.gene

# Author : PBG/17NOV05
# Description : selects the probeset with the highest present rate for each gene
# Detail : it is assumed that missing symbol is coded as "".
one.probeset.per.gene <-function(probeset = probeset, present = present, symbol = symbol){ 
   probeset.sel = probeset[order(symbol,-present)]
   symbol = symbol[order(symbol,-present)]
   probeset.sel = probeset.sel[!symbol==""]
   symbol = symbol[!symbol==""]
   indices = match(unique(symbol), symbol)
   probeset.sel = probeset.sel[indices]
   probeset.sel
}

Try the SAGx package in your browser

Any scripts or data that you put into this service are public.

SAGx documentation built on Nov. 8, 2020, 8:18 p.m.