chrOrder: Order chromosome names in proper genome order

Description Usage Arguments Value See Also Examples

View source: R/ordering.R

Description

Chromosomes make the most sense orded by number, then by letter.

Usage

1
chrOrder(chr.names)

Arguments

chr.names

character, vector of unique chromosome names

Value

character vector of chromosome names in proper order

See Also

Other "genome ordering": isGenomeOrder, toGenomeOrder

Examples

1
   chrOrder(c("chr5","chrX","chr3","chr7","chrY"))  #  c("chr3","chr5","chr7","chrX","chrY")

genoset documentation built on Nov. 1, 2018, 2:55 a.m.