get_compilation: Get or set query compilation

View source: R/query_builder_wrappers.R

get_compilationR Documentation

Get or set query compilation

Description

Get or set query compilation

Usage

get_compilation(qb)

set_compilation(qb, compilation)

Arguments

qb

A QueryBuilder object constructed using the QueryBuilder function.

compilation

A single string containing the name of the Snaptron data source. Any variant of the Compilation enum can also be passed as an argument.

Value

get_compilation returns the current compilation as string. set_compilation returns a new QueryBuilder object with the compilation set to the value of compilation.

Examples

qb <- QueryBuilder(compilation = "gtex", regions = "CD99")
get_compilation(qb)
qb <- set_compilation(qb, Compilation$tcga)
get_compilation(qb)

langmead-lab/snapr documentation built on May 4, 2022, 7:41 p.m.