sub-.GmtList.Rd
Subsetting GmtList object into another GmtList object
# S3 method for GmtList [(x, i, drop = FALSE)
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 |
#> A gene-set list in GMT format with 2 genesets #> Gene-sets: #> gs1 (n=3): a,b,c #> gs2 (n=2): c,dmyGmtList[1] ## default behaviour: not dropping#> A gene-set list in GMT format with 1 genesets #> Gene-sets: #> gs1 (n=3): a,b,cmyGmtList[1,drop=TRUE] ## force dropping#> $gs1 #> [1] "gs1" #> #> $<NA> #> NULL #> #> $<NA> #> [1] "a" "b" "c" #> #> $<NA> #> NULL #>