
Data Technologies 269
mart = ensMH)
> unique(rval$hgnc_symbol)
[1] "CDK2" "IL9R" "CDC2"
Exercise 8.12
What other data were returned by the call to getGene?
In order to obtain other information on the quantities of interest, the getBM
function provides a very general interface. In the code below we show how to
obtain Interpro domains for the same set of query genes as we used above.
> ensembl = useMart("ensembl",
dataset = "hsapiens_gene_ensembl")
> ipro = getBM(attributes=c("entrezgene","interpro",
"interpro_description"),
filters = "entrezgene", values = entrezID,
mart = ensembl)
> ipro
entrezgene interpro
1 1017 IPR000719
2 1017 IPR008271
3 1017 IPR001245
4