isGenomeOrder: Check if a GRanges orGenoSet is in genome order

Description Usage Arguments Value See Also Examples

View source: R/ordering.R

Description

Checks that rows in each chr are ordered by start. If strict=TRUE, then chromosomes must be in order specified by chrOrder. isGenomeOrder for GRanges differs from order in that it orders by chromsome and start position only, rather than chromsome, strand, start, and width.

Usage

1
isGenomeOrder(ds, strict = TRUE)

Arguments

ds

GenoSet or GRanges

strict

logical, should space/chromosome order be identical to that from chrOrder?

Value

logical

See Also

Other 'genome ordering': chrOrder, toGenomeOrder

Examples

1
2
  data(genoset,package='genoset')
  isGenomeOrder( rowRanges(genoset.ds) )

genoset documentation built on Nov. 8, 2020, 6:07 p.m.