Order Genes by their Genomic Positions

orderGenes(x)

Arguments

x

a matrix with gene names as rows or a character vector of gene names.

Value

ordered matrix or character vector

Examples

m = infercna::useData() orderGenes(m) %>% rownames %>% head
#> [1] "WASH7P" "LINC00115" "NOC2L" "ISG15" "SDF4" "UBE2J2"
orderGenes(rownames(m)) %>% head
#> [1] "WASH7P" "LINC00115" "NOC2L" "ISG15" "SDF4" "UBE2J2"