I want to obtain all human homologous gene from a Ensembl.Gene.ID vector of all Mouse genes. The df i obtain is missing many entries. Also if I use gene names instead of the Ensemble ID I have the same Issues.
the getBM work fine
What is wrong?
Thanks!
mart <- useMart(biomart = "ensembl", dataset = "mmusculus_gene_ensembl")
attributes = c("external_gene_name","entrezgene" ,"ensembl_gene_id", "description")
human = useMart("ensembl", dataset = "hsapiens_gene_ensembl")
attributesL = c("entrezgene","hgnc_symbol", "ensembl_gene_id")
getLDS(attributes, attributesL = attributesL, uniqueRows = T, filters = 'mgi_symbol', values=c("Cdkn2a"), mart = mart, martL = human)
[1] Associated.Gene.Name EntrezGene.ID Ensembl.Gene.ID Description EntrezGene.ID.1
[6] HGNC.symbol
<0 rows> (or 0-length row.names)
getLDS(attributes, attributesL = attributesL, uniqueRows = T, filters = 'ensembl_gene_id', values=c("ENSMUSG00000044303"), mart = mart, martL = human)
[1] Associated.Gene.Name EntrezGene.ID Ensembl.Gene.ID Description EntrezGene.ID.1
[6] HGNC.symbol
<0 rows> (or 0-length row.names)
getBM(attributes, values = "ENSMUSG00000044303", filters = 'ensembl_gene_id', mart = mart)
external_gene_name entrezgene ensembl_gene_id description
1 Cdkn2a 12578 ENSMUSG00000044303 cyclin-dependent kinase inhibitor 2A [Source:MGI Symbol;Acc:MGI:104738]