This is a test version of Biostars. For the public version, visit https://www.biostars.org.
biomaRt does not convert entrez gene id to ensembl gene id

I am trying to convert my entrez gene_id to ensembl gene_id. Here is my R codes


> library(biomaRt)

> ensembl<- useEnsemblGenomes(biomart = "plants_mart")

> searchDatasets(ensembl,pattern = "Beta")

             dataset                         description
14 bvulgaris_eg_gene Beta vulgaris genes (RefBeet-1.2.2) version 14 RefBeet-1.2.2

> ensembl<- useEnsemblGenomes(biomart = "plants_mart", dataset = "bvulgaris_eg_gene")

> filters= listFilters(ensembl)

> attributes= listAttributes(ensembl)

> View(filters)

> View(attributes)

> genes<- c("LOC104882799","gene-LOC104893862","LOC104890217","LOC104890218","LOC104890219","gene-LOC104890216","gene-LOC104890218","gene-LOC104890219","LOC104890216","104890218","104890219","104890217","104890216") # my NCBI gene_ids normally starts with "gene-" but i editted them differently in order to find the right representation of entrez gene_id

> getBM(attributes = c('entrezgene_id','ensembl_gene_id'), filters = 'entrezgene_id', values = genes, mart = ensembl)

[1] entrezgene_id   ensembl_gene_id 
<0 rows> (or 0-length row.names)

> getBM(attributes = c('entrezgene_accession','ensembl_gene_id'), filters = 'entrezgene_accession', values = genes, mart = ensembl)

[1] entrezgene_accession ensembl_gene_id     
<0 rows> (or 0-length row.names)

What am i doing wrong?

biomart ensembl entrez ncbi

those aren't NCBI gene IDs. NCBI gene IDs are just long numbers with no letters. Those look like gene names from NCBI.

The gtf file that i downloaded from NCBI says they are gene IDs. Now i wonder if i can convert those names to entrez IDs? how can i complete my annotation?

they may be gene IDs but they're not NCBI gene IDs. What is your overall aim?

Emily_Ensembl when trying to call useEnsemblGenomes function now I get an error :

Error in useEnsemblGenomes(biomart = "plants_mart") : could not find function "useEnsemblGenomes"

I've used it successfully in until some months ago. How can I solve this? thanks

0 answers

No answers yet.

Log in to answer this question.