Learn R Programming

LOLA (version 1.2.2)

readCollection: Given a bunch of region set files, read in all those flat (bed) files and create a GRangesList object holding all the region sets. This function is used by readRegionGRL to process annotation objects.

Description

Given a bunch of region set files, read in all those flat (bed) files and create a GRangesList object holding all the region sets. This function is used by readRegionGRL to process annotation objects.

Usage

readCollection(filesToRead, limit = NULL)

Arguments

filesToRead
a vector containing bed files
limit
for testing purposes, limit the number of files read. NULL for no limit (default).

Value

A GRangesList with the GRanges in the filesToRead.

Examples

Run this code
files = list.files(system.file("extdata", "hg19/ucsc_example/regions",
	 package="LOLA"), pattern="*.bed")
regionAnno = readCollection(files)

Run the code above in your browser using DataLab