Entering edit mode
21 months ago
Bane ▴ 30
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)  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)  entrezgene_accession ensembl_gene_id <0 rows> (or 0-length row.names)
What am i doing wrong?
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?
Prior reference for question in this thread : FeatureCounts Output contains gene_id or transcript_id?
LOCindicates temporary locations (LINK). You should remove the word
LOCto get gene ID's. If you search with just numeric part then you will find the gene. Here is one example of that search at NCBI. Not certain if this will work with BioMart.
Emily_Ensembl when trying to call
useEnsemblGenomesfunction 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
This has been cross posted as a new question at https://support.bioconductor.org/p/9140102/ I will try to answer it there.