This question was also asked on Biostars
I have a list of GO ids and I want to find out a unique term description such that if I provide say 200 GO IDs I will give 200 specific GO terms. The code snippet I am using is given below. Although it kind of works, for one given GO ID I get several terms like for my 200 GO ids I get 2577 terms whereas I am interested in a specific GO term. The output that I want is like this GO:0007254 = JNK cascade. I will like to mention that I have also cross-posted the query in biostars and got no reply for the last 2 days and hence I am posting the query on Stack exchange bioinformatics. Any help will be useful.
library(biomaRT) mart <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", dataset = "drerio_gene_ensembl", host = "asia.ensembl.org") v1 <-c(target) # The list of GO ids that I want to pass as a list. go_list <- getBM(attributes=c("go_id", "name_1006", "namespace_1003"), filters = "go", values = c("v1"), mart=mart, uniqueRows = TRUE)