Convertion of ENSEMBL id to gene symbol in the form of a vector.

I have results of a functional analysis as a data.frame with the following columns:

names(BP)
[1] “category” “ID” “Term” “Genes” “adj_pval”

The third column is a comma seperated list the genes containing in each GO term given as ENSEMBL id:

Genes
1 ENSG00000159618, ENSG00000197471, ENSG00000166928, ENSG00000134539, ENSG00000116824, ENSG00000198821, ENSG00000111796, ENSG00000150045, ENSG00000171049, ENSG00000196405, ENSG00000115594, ENSG00000139187, ENSG00000167286, ENSG00000149516, ENSG00000182885, ENSG00000160654, ENSG00000153563

I am looking for a way to convert these to gene symbols. Preferably by adding an extra column to the data.frame.

I tried the “AnnotationDbi” package and mapids function, but I cannot get it to pick the keys.

It would be of great help if anyone could guide me through this 🙂

With kind regards, Julie

Read more here: Source link