gskey: Converts collection,name combination to key for geneset

encode_gskeyR Documentation

Converts collection,name combination to key for geneset

Description

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()

Usage

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)

lianos/sparrow documentation built on Aug. 8, 2024, 9:01 a.m.