adSplit (version 1.38.0)

drawRandomPS: Draw sets of probe-sets

Description

This function draws a given number of probe-sets randomly, such that probe-sets referring to the same are either included or excluded as a whole.

Usage

drawRandomPS(nps, EID2PSenv, allEIDs)

Arguments

nps
number of probe-sets to be drawn.
EID2PSenv
a hash mapping EntrezGene to probe-set identifiers.
allEIDs
vector of all EntrezGene identifiers represented on a chip.

Value

A named vector of probe-set identifiers. The names correspond to the EntrezGene identifiers.

Examples

Run this code
# draw ten random probe-sets from hu6800
library(hu6800.db)
EID2PSenv <- makeEID2PROBESenv(hu6800ENTREZID)
drawRandomPS(10, EID2PSenv, ls(EID2PSenv))

Run the code above in your browser using DataCamp Workspace