gSort: Sort a GRangesList, helper.

View source: R/grl_helpers.R

gSortR Documentation

Sort a GRangesList, helper.

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

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.


Roleren/ORFik documentation built on Dec. 18, 2024, 11:39 p.m.