bed2GRanges: bed2GRanges

View source: R/epigeneticsData.R

bed2GRangesR Documentation

bed2GRanges

Description

loads a bed file and converts it to a GRanges object. Note that bed files are 0-based, right-exclusive by definition The output of this function will be 1-based, right inclusive as defined by GRanges.

Usage

bed2GRanges(fname, assembly = NA)

Arguments

assembly

genome assembly

id

region set id

Value

a GRanges object containing the region set

Examples

reg.fname <- system.file(file.path("extdata","deep_chip_ctrl_regions.hg19.bed"), package = "muRtools")
regs <- bed2GRanges(reg.fname)

demuellae/muRtools documentation built on Sept. 8, 2023, 4:32 p.m.