gSort: Sort a GRangesList, helper.

Description Usage Arguments Value

View source: R/grl_helpers.R

Description

A helper for [sortPerGroup()]. A faster, more versatile reimplementation of GenomicRanges::sort() Normally not used directly. Groups first each group, then either decreasing or increasing (on starts if byStarts == T, on ends if byStarts == F)

Usage

1
gSort(grl, decreasing = FALSE, byStarts = TRUE)

Arguments

grl

a GRangesList

decreasing

should the first in each group have max(start(group)) ->T or min-> default(F) ?

byStarts

a logical T, should it order by starts or ends F.

Value

an equally named GRangesList, where each group is sorted within group.


ORFik documentation built on March 27, 2021, 6 p.m.