Skip to contents

Strips 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.

Usage

annotate_results(res, orgdb)

Arguments

res

A DESeqResults object, or any data frame whose row names are Ensembl gene identifiers.

orgdb

An OrgDb object, for example org.Hs.eg.db::org.Hs.eg.db.

Value

res with symbol and entrez columns added.

Details

Warns when fewer than half the identifiers map, which normally means the OrgDb is for the wrong organism.