readRegionGRL: This function takes a region annotation object and reads in...

Description Usage Arguments Value Examples

View source: R/loadRegionDB.R

Description

This function takes a region annotation object and reads in the regions, returning a GRangesList object of the regions.

Usage

1
2
3
4
5
6
7
readRegionGRL(
  dbLocation,
  annoDT,
  refreshCaches = FALSE,
  useCache = TRUE,
  limit = NULL
)

Arguments

dbLocation

folder of regiondB

annoDT

output of readRegionSetAnnotation().

refreshCaches

should I recreate the caches?

useCache

uses simpleCache to cache and load the results

limit

for testing purposes, limit the nmber of files read. NULL for no limit (default).

Value

GRangesList object

Examples

1
2
3
dbPath = system.file("extdata", "hg19", package="LOLA")
regionAnno = readRegionSetAnnotation(dbLocation=dbPath)
regionGRL = readRegionGRL(dbLocation= dbPath, regionAnno, useCache=FALSE)

sheffien/LOLA documentation built on Sept. 3, 2020, 8:29 p.m.