This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How can I get gene annotations for hg38 in R?

How can I get table like following in R for hg38?

RefseqID    Symbol  Description EntrezID
NM_000014   A2M alpha-2-macroglobulin   2
NM_000015   NAT2    N-acetyltransferase 2 (arylamine N-acetyltransferase)   10
NM_000016   ACADM   acyl-CoA dehydrogenase, C-4 to C-12 straight chain  34
NM_000017   ACADS   acyl-CoA dehydrogenase, C-2 to C-3 short chain  35
NM_000018   ACADVL  acyl-CoA dehydrogenase, very long chain 37
annotation hg38 r

1 answer

I usually use this package: https://github.com/stephenturner/annotables Alternatively, biomaRt would be your friend.

Log in to answer this question.