bedToGRanges: Read a file and make a GRanges object

Description Usage Arguments Details Value Examples

Description

bedToGRanges takes a string corresponding to a file and creates a GRanges object, retaining meta-data

Usage

1
2
3
4
bedToGRanges(file)

## S4 method for signature 'character'
bedToGRanges(file)

Arguments

file

A string specifiying .bed file location

Details

Useful function to read in a .bed file to create a GRanges object where the meta-data is presevered. Useful for later functions like annotateAnchors

Value

A GRanges object

Examples

1
2
3
#Read in CTCF Jurkat peaks in
ctcf_j <- system.file('extdata','Jurkat_CTCF_chr1.narrowPeak',package = 'diffloop')
ctcf <- bedToGRanges(ctcf_j)

diffloop documentation built on Nov. 8, 2020, 5:48 p.m.