Xenopus tropicalis Ensembl Gene IDs and Transcripts ID with BiomaRt
2
0
Entering edit mode
7.0 years ago
gaby_santos ▴ 10

Hi!

I am trying to retrieve all ensembl gene and transcripts IDs of Xenopus tropicalis using the biomaRt library.

getBM(attributes = c('ensembl_transcript_id', 'ensembl_gene_id'), filters ="chromosome_name", values="?", mart=ensembl)

Specifically I have doubt in the values parameter , as I do not know the scaffolds nomenclature to retrieve all the genes and transcripts using the chromosome name as filter.

Thanks!

Gaby

R ensembl biomart • 2.2k views
ADD COMMENT
2
Entering edit mode
7.0 years ago
Mike Smith ★ 2.0k

If you want to get all values for the attributes you're interested in, you don't need to supply any filters or values. The following query should return all available data, but bear in mind it might take a long time to run.

library(biomaRt)
ensembl <- useMart('ensembl', 
                   dataset = 'xtropicalis_gene_ensembl',
                   host = "www.ensembl.org")

transAndGene <- getBM(attributes = c('ensembl_transcript_id', 'ensembl_gene_id'), 
                      mart = ensembl)

We can look at the number of rows in transAndGene to see how many transcripts were returned.

> nrow(transAndGene)
[1] 24197

You can check this against the Ensembl annotation overview page here and see that it's the same number as listed there, so our query returned everything available.

ADD COMMENT
0
Entering edit mode

how can i use this "transAndGene" to map my gene after I get result from deseq2 .I want to convert all the ENSEMBL to gene name can you let me know how do I do that?

ADD REPLY
1
Entering edit mode
7.0 years ago
Emily 23k

For values you should put in whichever chromosome you want to filter by. What chromosome are you looking to get the genes from?

ADD COMMENT

Login before adding your answer.

Traffic: 1965 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6