Description Usage Arguments Details Examples
This function loads a BED-like file and stores it as a GRanges object. The tab-delimited file must be ordered as 'chr', 'start', 'end', 'id', 'score', 'strand'. The minimal BED file must have the 'chr', 'start', 'end' columns. Any columns after the strand column are ignored.
1 | bed_to_granges(file, header)
|
file |
Location of your file |
header |
logical; indicates whether or not bed file has a header |
This is a forked version of the function written by Dave Tang (https://github.com/davetang/bedr), with added support for bed files with headers
1 | bed_to_granges('my_bed_file.bed')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.