The "key" form often comes out as rownames to matrices and such, or particularly for sending genesets down into wrapped methods, like do.camera.

splt_gskey is the inverse function of encode_gskey()

encode_gskey(x, y, sep = ";;")

split_gskey(x, sep = ";;")

Arguments

x

a character vector of encoded geneset keys from encode_gskey()

y

if x is a data.frame: nothing, otherwise a character vector of geneset names

sep

the separator used in the encoding of geneset names

Value

a character vector

a data.frame with (collection,name) columns

Examples

gdf <- exampleGeneSetDF()
gskeys <- encode_gskey(gdf)
gscols <- split_gskey(gskeys)