Skip to contents

Imports a bed-like file as a GRanges object. Uses `rtracklayer` import functions if possible, and falls back onto an import that's not format-committed otherwise.

Usage

importBedlike(x, ...)

Arguments

x

The path to a bed or bed-like file (can be gzipped)

...

passed to fread

Value

A `GRanges` object

Examples

# example bed file:
filepath <- system.file("extdata/example_peaks.bed", 
                        package="epiwraps")
b <- importBedlike(filepath)