View source: R/epigeneticsData.R
bed2GRanges | R Documentation |
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.
bed2GRanges(fname, assembly = NA)
assembly |
genome assembly |
id |
region set id |
a GRanges object containing the region set
reg.fname <- system.file(file.path("extdata","deep_chip_ctrl_regions.hg19.bed"), package = "muRtools")
regs <- bed2GRanges(reg.fname)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.