Hello everyone (first post ever for me)
I am using Biomart in R and I am trying to obtain the maize homologs of a set of barley genes (I am only displaying one here for example's sake). Everything works fine when I use the getBM function for getLDS does not seem to work.
host="plants.ensembl.org"
mysets<-listDatasets(useMart("plants_mart", host = host))
barley <- useDataset("hvulgare_eg_gene", mart = useMart("plants_mart", host = host))
zea <-useDataset("zmays_eg_gene", mart = useMart("plants_mart", host = host))
getLDS(attributes = c("ensembl_gene_id","description", "go_id","name_1006"),
filters = "ensembl_gene_id", values = "HORVU.MOREX.r3.1HG0000220",
mart = barley ,
attributesL = c("ensembl_gene_id","description", "go_id","name_1006"),
martL = zea)
I get the following error message. I think the issue may be that the Virtual Schema is set to default, but I can't find how to change it to plants_mart
Error in getLDS(attributes = c("ensembl_gene_id", "description", "go_id", : Query ERROR: caught BioMart::Exception::Usage: WITHIN Virtual Schema : default, Dataset hvulgare_eg_gene NOT FOUND
Traceback:
1. getLDS(attributes = c("ensembl_gene_id", "description", "go_id",
. "name_1006"), filters = "ensembl_gene_id", values = "HORVU.MOREX.r3.1HG0000220",
. mart = barley, attributesL = c("ensembl_gene_id", "description",
. "go_id", "name_1006"), martL = zea)
2. stop(postRes)
Any help would be greatly appreciated
I can confirm that I see the same error, and it's unexpected since you can run this query in the Ensembl web interface. I'll investigate if biomaRt is doing something incorrectly and get back to you.
Thank you very much!
https://support.bioconductor.org/p/110433/ Is the answer here helpful?
Hi, Thanks for your reply. The answer you provided talks about trying to get two different mart (in this instance human and plant) to interact. The issue there is that you cannot get two marts located on different hosts to link. My issue is that even though both the barley and zea marts are on the same host (plants.ensembl.org), the getLDS function cannot connect to the plants.ensembl host it seems, thus why it cannot find the barley genes dataset. I hope this clears it up somewhat ^^"