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

### See Also

Other utils: `bedToGR`, `convertToOneBasedRanges`, `findFa`, `is.gr_or_grl`, `is.grl`, `validGRL`

### 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.2.1 Index]