Description Usage Arguments Value Author(s)
find loadings of a numeric matrix and do GSEA on each loadings vector
1 2 |
exp |
pxn expression matrix (genes in rows, samples in columns) |
geneset |
a list where each element contains a vector of genes, and the list names are the names of the genesets |
n |
the number of principal components to do the calculations on (n=10 suggested). |
cumulative.proportion |
Keep enough principal components to account for this total proportion of the variance. Over-rides n. |
proportion.variance |
Keep any principal components which account for at least this proportion of the variance. Over-rides n and cumulative.proportion. |
... |
arguments passed on to prcomp function. scale.=TRUE is advisable. |
a list with four elements. 1: the loadings of the expression matrix for the components kept, 2: the scores, 3: the unadjusted p-values from GSEA, and 4: the prcomp object which can be used to make a screeplot, calculate scores from new data, etc.
Princy Parsana and Levi Waldron
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.