Sorts a GRanges object by seqname and start position

sortBySeqnameAndStart(gr)

sortBySeqnameAndEnd(gr)

Arguments

gr

GRanges object

Value

GRanges object

Examples

GR <- as(c('chr2:1-1', 'chr1:1-1'), 'GRanges')
GR <- sortBySeqnameAndStart(GR)