Given two regionDBs, (lists returned from loadRegionDB()), This function will combine them into a single regionDB. This will enable you to combine, for example, LOLA Core databases with custom databases into a single analysis.

mergeRegionDBs(dbA, dbB)

Arguments

dbA

First regionDB database.

dbB

Second regionDB database.

Value

A combined regionDB.

Examples

dbPath = system.file("extdata", "hg19", package="LOLA") regionDB = loadRegionDB(dbPath)
#> Reading collection annotations:
#> ucsc_example: found collection annotation:/sfs/lustre/scratch/ns5bc/code/LOLA/inst/extdata/hg19/ucsc_example/collection.txt
#> Reading region annotations...
#> ::Loading cache:: /sfs/lustre/scratch/ns5bc/code/LOLA/inst/extdata/hg19/ucsc_example//ucsc_example_files.RData
#> ucsc_example
#> ::Loading cache:: /sfs/lustre/scratch/ns5bc/code/LOLA/inst/extdata/hg19/ucsc_example/ucsc_example.RData
combinedRegionDB = mergeRegionDBs(regionDB, regionDB)
#> dbLocation
#> regionAnno
#> collectionAnno
#> regionGRL