Entering edit mode
14.0 years ago
Sirus
▴
820
Hello, every body I want to do a mapping from uniportIDs to Ensemble gene IDs using biomaRt package in R I have used the followed instruction
library(biomaRt)
ensemble<-useMart("ensembl",dataset="scerevisiae_gene_ensembl")
mart2 <-useMart("ensembl",dataset="protein")
proteins<-c("P53736","P53737","P53738","P53739","P53740","P53741","P53742","P53743","P53744","P53745")
getLDS(attributes="ensembl_gene_id",mart=ensemble,attributesL="protein_accession",filtersL="protein_accession",valuesL=proteins,martL=mart2)
I get the following error:
Error in get(filtersL, env = martFilters(martL)) : invalid 'envir' argument
Do someone have an idea about it? Thank you.
Thank you very much it worked perfectly, in fact in the second mart I am using the attribute "accession" exists.