order.index.gene.data: Order and Index Gene Annotation Data
Description
This function orders and indexes gene annotation data by chromosome, gene start, and gene end positions. It is typically used to prepare gene data for overlap analyses with lesion data.
Usage
order.index.gene.data(gene.data)
Value
A list with two components:
gene.data
The input gene annotation data, ordered by chromosome and genomic coordinates.
gene.index
A data.frame with two columns (row.start and row.end) indicating the row indices for genes on each chromosome.
Arguments
gene.data
A data.frame containing gene annotation information, either provided by the user or retrieved using the get.ensembl.annotation function from the GRIN2.0 package. The data.frame must contain four columns: