I have a matrix that consists of gene names. What is the most efficient method to retrieve the gene annotations using the BSgenome.Rnorvegicus.UCSC.rn5 package.
Example of matrix:
Thanks in advance
Have a look at the Bioconductor AnnotationDbi package documentation, and a couple of the vignettes - Introduction to Bioconductor Annotation Packages, and the Reference Manual.