gene2ix {globaltest}R Documentation

Gene to index

Description

Gives the index numbers where genes of interest are present on a chip.

Usage

 
gene2ix(genes, chip, logic = FALSE) 

Arguments

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.

Details

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.

Value

If logic = FALSE (default), a list of index numbers is returned. If logic = TRUE

Note

The result of gene2ix can be used as input of the test.genes option of the function globaltest.

Author(s)

Jelle Goeman: j.j.goeman@lumc.nl.

Examples

 
    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

[Package Contents]