Learn R Programming

mogsa (version 1.6.4)

prepSupMoa: Prepare sumpplementary tables for projection by sup.moa or mogsa.

Description

Convert a list of gene set information to a set of sumpplementary tables that can be used as input of function "sup.moa" or "mogsa".

Usage

prepSupMoa(X, geneSets, minMatch = 10, maxMatch = 500)

Arguments

X
A matrix/data.frame or a list of matrix/data.frame or a list of character vector. If it is a list of matrix/data.frame, row names of matrix/data.frame will be used to create the projection matrix. Otherwise the charater vectors will used to create the supplementary matirx.
geneSets
Gene sets list or an object of class "GeneSet" or "GeneSetCollection". A gene set list could be returned by prepGraphite or prepMolsigDB.
minMatch
The minimum match of geneset.
maxMatch
The maximum match genesets.

Value

A list of matrix could used as supplementary tables by "sup.moa" or "mogsa".

Details

Details here

See Also

See Also as prepGraphite and prepMsigDB.

Examples

Run this code
  library(graphite)
  data(NCI60_4arrays)
  gss <- prepGraphite(db = kegg[6:10], id="symbol")
  sup_data1 <- prepSupMoa(NCI60_4arrays, geneSets=gss)
  gene_list <- lapply(NCI60_4arrays, rownames)
  sup_data2 <- prepSupMoa(gene_list, geneSets=gss)

Run the code above in your browser using DataLab