Attach gene symbols and Entrez identifiers to a results table
Source:R/helpers.R
annotate_results.RdStrips the Ensembl version suffix before mapping. Forgetting to do so is
the usual reason this step silently returns all NA: the annotation
database keys on the unversioned identifier.
Arguments
- res
A
DESeqResultsobject, or any data frame whose row names are Ensembl gene identifiers.- orgdb
An
OrgDbobject, for exampleorg.Hs.eg.db::org.Hs.eg.db.
Details
Warns when fewer than half the identifiers map, which normally means the
OrgDb is for the wrong organism.