bed_to_granges: BED to GRanges

Description Usage Arguments Details Examples

View source: R/bed_funs.r

Description

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.

Usage

1

Arguments

file

Location of your file

header

logical; indicates whether or not bed file has a header

Details

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

Examples

1
bed_to_granges('my_bed_file.bed')

carjed/smaug documentation built on May 5, 2019, 3:49 a.m.