add_expression.gosummaries: Add expression data to gosummaries object

Description Usage Arguments Details Author(s) Examples

View source: R/GOsummaries.R

Description

Function to add expression data and its annotations to a gosummaries object.

Usage

1

Arguments

gosummaries

a gosummaries object

exp

an expression matrix, with row names corresponding to the names in the Gene_lists slot

annotation

a data.frame describing the samples, its row names should match with column names of exp

Details

The data is added to the object in a "long" format so it would be directly usable by the ggplot2 based panel drawing functions panel_boxplot etc. For each component it produces a data frame with columns:

Author(s)

Raivo Kolde <raivo.kolde@eesti.ee>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
data(gs_limma)
data(tissue_example)

# Add just expression without annotations
gs_limma_exp1 = add_expression.gosummaries(gs_limma, exp = 
tissue_example$exp)

print(gs_limma_exp1)

# Add expression with annotations
gs_limma_exp2 = add_expression.gosummaries(gs_limma, exp = 
tissue_example$exp, annotation = tissue_example$annot)

print(gs_limma_exp1)

## End(Not run)

GOsummaries documentation built on Nov. 8, 2020, 6:50 p.m.