sub-.GmtList: Subsetting GmtList object into another GmtList object

Description Usage Arguments Examples

Description

Subsetting GmtList object into another GmtList object

Usage

1
2
## S3 method for class 'GmtList'
x[i, drop = FALSE]

Arguments

x

A GmtList object

i

Index to subset

drop

In case only one element remains, should a list representing the single geneset returned? Default: FALSE

Examples

1
2
3
4
myGmtList <- GmtList(list(gs1=letters[1:3], gs2=letters[3:4], gs3=letters[4:5]))
myGmtList[1:2]
myGmtList[1] ## default behaviour: not dropping
myGmtList[1,drop=TRUE] ## force dropping

Accio/BioQC documentation built on Jan. 27, 2022, 10:45 p.m.