
Orders a vector of indices according to their corresponding genomic locations (chromosome and position). This function is useful for sorting site sites or other genomic features by their physical positions.
Source:R/utils.R
orderByLoc.RdOrders a vector of indices according to their corresponding genomic locations (chromosome and position). This function is useful for sorting site sites or other genomic features by their physical positions.
Arguments
- x
Character or integer vector. Indices or identifiers to be ordered
- array
Character. Array platform type, either "450K" or "EPIC". Required when
genomic_locsis NULL.- genome
Character. Genome version, either "hg38", "hg19", or "hs1". Required when
genomic_locsis NULL.- genomic_locs
Data frame. Optional pre-computed genomic locations. If NULL, locations will be retrieved using getSortedGenomicLocs (default: NULL)