This is a test version of Biostars. For the public version, visit https://www.biostars.org.
biomaRt external_gene_name same entry multiple times when mapping to homolog mouse gene

Hello,

I am trying to convert human gene names to mouse gene names using biomaRt. Here is the code I am using:

library("biomaRt")

ensembl = useMart("ensembl")
ensembl = useDataset("hsapiens_gene_ensembl",mart=ensembl)

all <- getBM(attributes = c("external_gene_name","mmusculus_homolog_associated_gene_name"), mart=ensembl)

The problem here is, that for some genes that I am interested in, there are two mmusculus_homolog_associated_gene_name. One contains the right homolog, the other is simply empty. One such gene is PTPRD.

When I want to perform the actual conversation with this code:

mapping <- getBM(attributes = c("external_gene_name","mmusculus_homolog_associated_gene_name"),
             filters = "external_gene_name",
             values = GENES-OF-INTEREST,
             mart=ensembl)

The entry of PTPRD is picked, where the homolog is empty and not Ptprd. This happens for many different genes, and messes up my conversation table.

If anyone can help me figure out this problem or tell me why there are multiple external_gene_name in the first place, I'd be very happy.

EDIT: Added image to emphasize what I am seeing when analyzing the all object

ensembl mapping homology

NaN generally stands for not-a-number as in "undefined" or "unrepresentable". I don't think there is a gene called nan. There is one called Nans.

Sorry, its not actually NaN. Its just empty. Ill specify this in my question.

Some genes have no homolog in human, as a gene might have been lost during evolution, and others have many as gene duplications might have lead to paralogs. Nothing you can do about it.

I know, but I dont think that this is what is happening here. For example the effect not only occures for PTPRD but also for HRAS.

0 answers

No answers yet.

Log in to answer this question.