convertBed2Exons {genomation} | R Documentation

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

### Description

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

### Usage

    convertBed2Exons(bed.df)

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

### Arguments

`bed.df` | 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

### Examples

    file = system.file('extdata/chr21.refseq.hg19.bed', package='genomation')
    bed12 = read.table(file)
    exons = convertBed2Exons(bed12)
    head(exons)

[Package genomation version 1.24.0 Index]