gr2bed: GenomicRanges to BED-like data frame.

Description Usage Arguments Details Value

Description

Function to convert GenomicRanges objects into BED-like data frames.

Usage

1
gr2bed(gr)

Arguments

gr

a GenomicRanges object

Details

The function produces a BED-like data frame where the 4th, 5th and 6th columns correspond to the name, the score and the strand associated to the feature. If the 'gr' object has a column called 'name', the name will be taken from this column, otherwise will be set to '.'. For the score, if a column named 'score' is present in the 'gr' object, the value will be taken from this column, otherwise it will be set to '.'. Any additional columns in the 'gr' object will be added as additional annotation from the 7th column on.

Value

A data frame with at least six columns with the following info: chromosome, initial position, final position, name of the feature, score and strand.


xpastor/skima documentation built on May 16, 2019, 3:25 p.m.