Learn R Programming

rtracklayer (version 1.32.0)

asBED: Coerce to BED structure

Description

Coerce the structure of an object to one following BED-like conventions, i.e., with columns for blocks and thick regions.

Usage

asBED(x, ...)
## S3 method for class 'GRangesList':
asBED(x)

Arguments

x
Generally, a tabular object to structure as BED
...
Arguments to pass to methods

Value

  • A GRanges, with the columns name, blockStarts and blockSizes added.

Details

The exact behavior depends on the class of object. [object Object]

Examples

Run this code
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
exons <- exonsBy(TxDb_Hsapiens_UCSC_hg19_knownGene)
mcols(asBED(exons))

Run the code above in your browser using DataLab