Mapping unique GO term description given a specific GO id
I have a list of GO ids and I want to find 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 ,but for one GO term I get several terms like for my 200 GO terms I get 2577 entries where as I am interested in a specific GO term.
The output that I want is like this GO:0007254 = JNK cascade
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)
• 10 views
Read more here: Source link