Entering edit mode
lemon tree
▴
40
@lemon-tree-5473
Last seen 10.3 years ago
Dear All,
I have a list of human genes with EntrezGene IDs. And I want to
retrieve dN and dS values of them from biomaRt.
I used the following command.
library(biomaRt)
ensembl = useMart("ensembl", dataset = "hsapiens_gene_ensembl")
inputfile<-"gene_list.txt";
geneIDs<-read.table(inputfile,header=F);
dnds <- getBM(attributes = c("entrezgene", "mmusculus_homolog_dn",
"mmusculus_homolog_ds"), filters = c("entrezgene"), values= geneIDs,
mart =
ensembl)
There is an error as the following:
Query ERROR: caught BioMart::Exception::Usage: Attributes from
multiple
attribute pages are not allowed
Could anyone give some suggestions on this? Thanks very much!
Best all!
--
David Wang
[[alternative HTML version deleted]]