gr.main implements the Gene Recommender algorithm
described in Owen et al (2003). Note that in order for gr.main
to provide meaningful results,
the normalization procedure gr.normalize
must first be applied to the gene expression matrix.
gr.main(normalized.dataset, query, fun = median, ngenes = NULL, extra = FALSE)normalized.dataset must be either finite or NA.
normalized.dataset. The query must contain at least 2 elementsresult. When true, several other quantities (listed below) will be calculated
and added to the output list.
ngenes, 2). Column 1 contains the resulting genes,
with the highest scoring genes listed first. Column 2 contains character strings,
indicating whether the corresponding gene is from the query list or not.
contribution indicates how
strongly the experiment suggests that the gene should be high ranking.
Using notation from the article, contribution is defined as
$\bar{Y}_{Q,j} \times Y_{ij}$.
The algorithm must choose how generous to be in including experiments. How many
experiments should be included? The algorithm tries every number of experiments
and chooses the number which minimizes a score. In the paper, the score was
defined as the median of the ranks of the query genes. In gr.main,
the score can be computed with the user-defined function, fun.
gr.normalize, gr.cv
#This example uses the geneData dataset from the Biobase package
data(geneData)
my.query <- c("31730_at", "31331_at", "31712_at", "31441_at")
normalized.data <- gr.normalize(geneData)
gr.main(normalized.data, my.query, ngenes = 10)
Run the code above in your browser using DataLab