I want to convert Ensembl gene IDs to Uniprot IDs. I have used the biomaRt package in R and perform the following commands.
> ensembl <- useEnsembl(biomart = "genes", dataset = "hsapiens_gene_ensembl")
> getBM(mart=ensembl,attributes=c("ensembl_gene_id","uniprot_gn_id"),filters="ensembl_gene_id",values="ENSG00000183955",uniqueRows=TRUE);
As a result, the following was output.
> id uniprot_gn_id
> 1 ENSG00000183955 C9JKQ0
> 2 ENSG00000183955 F8WC45
However, I think that this output is insufficient. Because the gene corresponding to Ensembl ID="ENSG00000183955" is KMT5A. Based on the following Uniprot site, I think that not only C9JKQ0 and F8WC45 but also A0A0C4DFR3, and Q9NQR1 should also be output. https://www.uniprot.org/uniprot/Q9NQR1
How can I get all Uniprot IDs in biomaRt? I would appreciate it if you could tell me.
You can also use UniProt's ID mapping tool here: https://www.uniprot.org/uploadlists/
Full data available in files here if you want to grep the information directly: https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/