gsaTranslateGmt: GSA Translate GMT

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Converts a GMT file so that symbols match rownames of X.

Usage

1
2
3
4
5
6
## S4 method for signature 'gsagenesets,matrix,character'
gsaTranslateGmt(gmt, X, genes)
## S4 method for signature 'gsagenesets,ExpressionSet,character'
gsaTranslateGmt(gmt, X, genes)
## S4 method for signature 'gsagenesets,data.frame,character'
gsaTranslateGmt(gmt, X, genes)

Arguments

gmt

An object of class gsagenesets or a list of gene sets.

X

An object of class ExpressionSet, matrix or data.frame.

genes

An character vector with the gene names of X.

Details

Can be used to translate gene sets, for example from official gene symbols to manufacturer probe ids.

Value

An object of class gsagenesets.

Author(s)

Markus Riester markus@jimmy.harvard.edu, Levi Waldron lwaldron@hsph.harvard.edu, Christoph Bernau bernau@ibe.med.uni-muenchen.de

See Also

gsaReadGmt, gsaTranslateGmt

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    library(survHD)
    library(survHDExtra)
    library(hu6800.db)
    library(annotate)

    data(beer.exprs)
    data(beer.survival)
    gmt <- gsaReadGmt(system.file("extdata/ovarian_gene_signatures.gmt", package = "survHD"))
    # the Gmt file contains gene symbols, so we translate it to Affymetrix 
    genes <- getSYMBOL(rownames(beer.exprs), "hu6800")
    gmt.affy <- gsaTranslateGmt(gmt, beer.exprs, genes)

bernau/survHDExtra documentation built on May 12, 2019, 4:22 p.m.