importBedlike: importBedlike

View source: R/misc.R

importBedlikeR Documentation

importBedlike

Description

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)

ETHZ-INS/epiwraps documentation built on May 4, 2024, 6:25 a.m.