convertBedDf {genomation} | R Documentation

## convert a data frame read-in from a bed file to a GRanges object

### Description

convert a data frame read-in from a bed file to a GRanges object

### Usage

    convertBedDf(bed)

    ## S4 method for signature 'data.frame'
    convertBedDf(bed)

### Arguments

`bed` | a data.frame where column order and content resembles a bed file with 12 columns

### Value

`GRanges` object

### Note

one bed track per file is only accepted, the bed files with multiple tracks will cause en error

bed files are expected not to have header lines

[Package genomation version 1.12.0 Index]