I notice that some mouse symbol will return multiple human gene symbol. Below is an example. If i search the mouse id on gene card, the correct human homolog should be ZNF286A, and Tmx2 is TMX2.
Is there a programmatic way to remove the incorrect conversion?
library(biomaRt)
human = useMart("ensembl", dataset = "hsapiens_gene_ensembl")
mouse = useMart("ensembl", dataset = "mmusculus_gene_ensembl")
genes = c("Zfp286", "Tmx2")
genes = getLDS(attributes = c("mgi_symbol"), filters = "mgi_symbol", values = genes ,mart = mouse, attributesL = c("hgnc_symbol","chromosome_name", "start_position"), martL = human, uniqueRows=T)
> genes
MGI.symbol HGNC.symbol Chromosome.Name Gene.Start..bp.
1 Zfp286 ZNF286A 17 15699577
2 Zfp286 ZNF286B 17 18658429
3 Tmx2 TMX2 11 57712600
4 Tmx2 TMX2-CTNND1 11 57712605
Why do you say the correct homologs are those? Why is ZNF286B not an homolog of Zfp286?
Based on the MGI database, the listed homolog is ZNF286A.
http://www.informatics.jax.org/marker/MGI:2384758
Actually, I decided to add this as an answer.