GRanges_tidiers: Tidying methods for GRanges and GRangesList objects.

Description Usage Arguments Value Examples

Description

Tidying methods for GRanges and GRangesList objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'GRanges'
tidy(x, ...)

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

## S3 method for class 'GRanges'
glance(x, ...)

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

Arguments

x

GRanges or GRangesList object

...

Not used.

Value

All tidying methods return a data.frame without rownames. tidy returns one row for each range, which contains

For GRangesList, there will also be a column representing which group the ranges comes from. glance returns a data.frame with the number of ranges, the number of sequences, and the number of groups (if applicable).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
if (require("GenomicRanges", "airway")) {
data(airway)

# GRangesList object
air_gr <- rowRanges(airway)

tidy(air_gr)
glance(air_gr)

# GRanges object
air_gr <- rowRanges(airway)@unlistData

tidy(air_gr)
glance(air_gr)


}

biobroom documentation built on Nov. 8, 2020, 5:20 p.m.