randomGeneSetDb: Generates a fake GeneSetDb by sampling from features in a...

View source: R/testing-helpers.R

randomGeneSetDbR Documentation

Generates a fake GeneSetDb by sampling from features in a seas input.

Description

I wrote this because initial fetching from msigdbr can be slow, and also having some weird crashes in the unit tests of bioc3.14-devel.

Usage

randomGeneSetDb(x, n = 10, bias = NULL, ...)

Arguments

x

an input container to seas()

n

number of genesets

bias

column in x to bias the geneset creation by

...

pass through args

Details

This is a helper function for development, and shouldn't be used by normal users of this package.

Value

A randomly generated GeneSetDb you can use against x for testing.

Examples

gdb.rando <- randomGeneSetDb(exampleDgeResult(), 10, bias = "t")

lianos/sparrow documentation built on Nov. 18, 2024, 7:14 a.m.