Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/createMetageneSpace.R
Summarize expression matrix into metagene-level expression matrix.
1 | createMetageneSpace(ge, attractome, map=NULL, rownamesMap=FALSE, chosenProbes=NULL, gene.colname="Gene.Symbol")
|
ge |
Gene expression matrix with each row as a gene and each column as a sample. |
attractome |
A list of metagenes and their gene mambers. Each metagene in the list is a matrix
with gene symbols in the first column. See the format of |
map |
Path to gene symbol annotation file with rownames as probe set IDs. Must contains a column
with gene symbols. If |
rownamesMap |
If |
chosenProbes |
A list of probe set IDs selected by previous run. If this argument is assigned, the program will not find the best correlated probe sets for summarization. This is used for probe set consistency among different datasets. |
gene.colname |
The column name in the |
Given the gene members of the attractors, this function transforms the probe-level or gene-level expression matrix into the metagene-level expression matrix. One can use the metagene expression matrix to build predictive models, observe relations between biomolecular events represented by Attractor Metagenes, create figures, etc..
If ge
is a probe-level expression matrix, the function first summarize the probe-level
expression into gene-level expression by taking mean values after discarding the un-correlatted
probe sets (similar to the probeSummarization
function). Then it create metagenes using
the mean of the gene-level expression of the genes. If ge
is gene-level expression
matrix, the function will directly take the mean of the gene members and create the metagene.
For consistency of the probe set used, one can use the pbs
field of the output from
previous run to create metagene space using the same selected probe sets in the previous run.
When map
is provided, the function gives a list containing the following field:
metaSpace |
the metagene-level expression matrix. |
pbs |
the probe set IDs used to summarize each gene in the metagenes. |
When map
is NULL
, the function gives a matrix of the metagene-level expression matrix.
Wei-Yi Cheng
Wei-Yi Cheng, Tai-Hsien Ou Yang and Dimitris Anastassiou, Biomolecular events in cancer revealed by attractor metagenes, PLoS Computational Biology, Vol. 9, Issue 2, February 2013.
findAttractor
,
probeSummarization
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # load Toy version of Wang et al. breast cancer dataset (GSE2034)
data(brca.pbs)
# download the HGU133A 2.0 annotations
source("http://bioconductor.org/biocLite.R")
biocLite("hgu133a2.db")
library(hgu133a2.db)
# Create map object to fit the format
x <- hgu133a2SYMBOL
map <- cbind(unlist(as.list(x[mappedkeys(x)])))
colnames(map) <- "Gene.Symbol"
# load the attractor list
data(attractome)
# summarize into metagene-level expression
o <- createMetageneSpace(brca.pbs, attractome, map)
meta <- o$metaSpace
# create metagene expression matrix using the selected probes
meta2 <- createMetageneSpace(brca.pbs, attractome, chosenProbes=o$pbs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.