sortByChromAndStart: Sorting 'GRanges-class' objects

View source: R/sortByChromAndStart.R

sortByChromAndStartR Documentation

Sorting GRanges-class objects

Description

Sorts a GRanges-class objects by seqname (chromosome), start, and position.

Usage

sortByChromAndStart(x)

sortByChromAndEnd(x)

Arguments

x

GRanges object

Details

Objects that inherits from a GRanges-class can be sorted as well.

Value

GRanges-class object or from the original object class.

Examples

GR <- as(c("chr2:1-1", "chr1:1-1"), "GRanges")
GR <- sortByChromAndStart(GR)


genomaths/GenomAutomorphism documentation built on Dec. 12, 2024, 2:12 p.m.