get_regions: Get or set query regions

View source: R/query_builder_wrappers.R

get_regionsR Documentation

Get or set query regions

Description

Get or set query regions

Usage

get_regions(qb)

set_regions(qb, regions)

Arguments

qb

A QueryBuilder object constructed using the QueryBuilder function.

regions

Either a list of 1 more HUGO gene names as strings e.g. "BRCA1" or a Granges class object containing one or more geneomic intervals (e.g. "chr1:1-1000").

Value

get_regions returns the current regions as a list of strings. set_regions returns a new QueryBuilder object with the regions set to the value of regions.

Examples

qb <- QueryBuilder(compilation = "gtex", regions = "CD99")
get_regions(qb)
qb <- set_regions(qb, "chr1:1-1000")
get_regions(qb)
qb <- set_regions(qb, GenomicRanges::GRanges("chr1", "1-1000"))
get_regions(qb)

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