I have some genome positions and I want to annotate these positions (find Ensembl gene ID, the features like exonic, intronic, ...) based on Ensembl using biomaRt R package.
part of my data
chr start stop strand
chr10 100572320 100572373 -
chr10 100572649 100572658 +
Prepare you data to query biomaRt
sample data
Then use biomaRt
This will give you the ensembl Ids for genes, transcripts, and exons present in given genomic location. biomaRt offers lot more information, so do not forget to use
listAttributes()
to find out all.