sort_regions: Sort Regions

Description Usage Arguments Value Examples

View source: R/region_functions.R

Description

Sorts imported regions by chromosomal location or score.

Usage

1
sort_regions(zu_obj, by = "coord", decreasing = FALSE)

Arguments

zu_obj

A ZentUtils object.

by

Sort by chromosomal coordinates ("coord") or column 5 of the imported ranges (automatically named "score" upon import).

decreasing

Whether the GRanges object should be sorted in descending order.

Value

A sorted GRanges object in the 'regions' slot of the ZentUtils object (overwrites original region order).

Examples

1
zent <- sort_regions(zent, by = "score", decreasing = TRUE)

gzentner/ZentUtils documentation built on June 16, 2021, 12:24 a.m.