Imports bed files and creates GRanges objects, using the fread() function from data.table.

readBed(file)

Arguments

file

File name of bed file.

Value

GRanges Object

Examples

a = readBed(system.file("extdata", "examples/combined_regions.bed", package="LOLA"))