gene2ix {globaltest} | R Documentation |
Gives the index numbers where genes of interest are present on a chip.
gene2ix(genes, chip, logic = FALSE)
genes |
A vector of gene names of the genes of interest. |
chip |
A vector of gene names present on the chip. |
logic |
Determines the format of the return value. If
FALSE , the function returns list of index numbers, if
TRUE it returns a logical vector as long as chip . |
Given a list of gene names and the complete list of the names of genes on a chip, the function returns the locations of the genes of interest on the chip. The names must match exactly.
If logic = FALSE
(default), a list of index numbers
is returned. If logic = TRUE
The result of gene2ix
can be used as input of the
test.genes option of the function globaltest
.
Jelle Goeman: j.j.goeman@lumc.nl.
my.chip = c("a", "b", "c", "d", "e") my.genes = c("a", "b", "f") ix <- gene2ix(my.genes, my.chip) ix ix <- gene2ix(my.genes, my.chip, logic = TRUE) ix