bedToGRanges {diffloop} | R Documentation

## Read a file and make a GRanges object

### Description

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

### Usage

    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

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

[Package diffloop version 1.22.0 Index]