conversion: Convert a GeneSetDb to other formats.

Description Usage Arguments Details Value Examples

Description

As awesome as a GeneSetDb is, you might find a time when you'll need your gene set information in an other format. To do that, we provide the following functions:

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## S3 method for class 'GeneSetDb'
as.data.frame(
  x,
  row.names = NULL,
  optional = FALSE,
  value = c("feature_id", "x.id", "x.idx"),
  active.only = is.conformed(x),
  ...
)

## S3 method for class 'GeneSetDb'
as.list(
  x,
  value = c("feature_id", "x.id", "x.idx"),
  active.only = is.conformed(x),
  nested = FALSE,
  ...
)

Arguments

x

A GeneSetDb object

value

The value type to export for the feature ids

active.only

If the GeneSetDb is conformed, do you want to only return the features and genests that match target and are "active"?

...

nothing

Details

The as.* functions accept a value parameter which indicates the type of IDs you want to export in the conversion:

Value

a converted GeneSetDb

Examples

1
2
3
4
5
6
es <- exampleExpressionSet()
gdb <- conform(exampleGeneSetDb(), es)
gdf <- as.data.frame(gdb)
gdb <- conform(gdb, es)
gdfi <- as.data.frame(gdb, value = 'x.idx')
gdl <- as.list(gdb)

lianos/multiGSEA documentation built on Nov. 17, 2020, 1:26 p.m.