fread.bed {ORFik} | R Documentation

## Load bed file as GRanges.

### Description

Wraps around rtracklayer::import.bed and tries to speed up loading with the use of data.table. Supports gzip, gz, bgz and bed formats.

### Usage

    fread.bed(filePath)

### Arguments

`filePath` | The location of the bed file

### Value

a GRanges object

### Examples

    # path to example CageSeq data from hg19 heart sample
    cageData <- system.file("extdata", "cage-seq-heart.bed.bgz",
                            package = "ORFik")
    fread.bed(cageData)

[Package ORFik version 1.0.0 Index]