get_regions: Get or set query regions

Description Usage Arguments Value Examples

View source: R/query_builder_wrappers.R

Description

Get or set query regions

Usage

1
2
3
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

1
2
3
4
5
6
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)

snapcount documentation built on Nov. 8, 2020, 4:53 p.m.