Is there an existing method to convert from gtf/gff3 gene_id to a gene symbol/name?

technical question

I have my expression count data in R - it's labelled by gene id: e.g. AT3G21630 - how can I convert this to it's gene symbol e.g. CERK1?

 

Hope this makes sense - tried asking in the monthly discussion and no answers.

Posted May 8, 2019, 8:08 AM UTC

108
neopedro•
11
TubeZPhD | Student•
2
gungorbudak•

Another method in R is to use an annotation package for your organism. Here is a tutorial for converting between identifiers in R

In your case, you'll be using org.At.tair.db as the annotation package and convert from TAIR to SYMBOL like this:

> mapIds(org.At.tair.db, c('AT3G21630'), 'SYMBOL', 'TAIR')
'select()' returned 1:many mapping between keys and columns
AT3G21630
"AtCERK1"
6
SirSharpestOP•

found an answer myself after looking further:

4
Jack0fAll7radesBSc | Student•

This would have came in handy like 2 weeks ago for me. Converted about 50 genes, while not a lot, by hand by looking them up on TAIR..

1
gordonj•

I'm not sure if there's an R package to do it directly, but the information can be parsed from TAIR from the gene_description_20131231.txt.gz file.

1
SirSharpestOP•

See my comment. Found a perfect solution for it. Thanks though!

1
Waddellski456PhD | Student•

If you used feature counts to make the expression tables use -g gene_name instead of -g gene_id then you don’t have to convert!

1