grFromBedFile: create a GenomicRanges object from a BED

Description Usage Arguments Value Examples

View source: R/myGRBasicFunctions.R

Description

create a GenomicRanges object from a BED

Usage

1

Arguments

fn

a path to the BED file (it can be gzipped) (0-based half open)

Value

a Genomic ranges with intervals (1-based closed)

Examples

1
2
3
4
5
tests_dir <- system.file("tests", package="usefulLDfunctionsGR")
test_bed <- file.path(tests_dir, "test6colWithHeader.bed")

# Load the bed with no header in a dataframe
grBED <- grFromBedFile(test_bed)

lldelisle/usefulLDfunctionsGR documentation built on Nov. 25, 2019, 11:24 a.m.