I want to add a column with the gene symbol corresponding to the Ensembl Gene ID to a dataframe in R
resOrdered$symbol <- mapIds(org.Hs.eg.db,
I'm using 'org.Hs.eg.db' from BioConductor for this.
I get the following error:
Error in .testForValidKeys(x, keys, keytype, fks) :
None of the keys entered are valid keys for 'ENSEMBL'. Please use the keys method to see a listing of valid arguments.
I think this is because my row.names from my dataframe resOrdered look like this:
 "ENSG00000100601.5" "ENSG00000178826.6" "ENSG00000243663.1" "ENSG00000138231.8"
I think the problem is that there are '.', that signify the version, after the actual ENGS. Is there a way to still find a match with the 'ENSEMBL' key from 'org.Hs.eg.db'?