How To Get All Ensembl Repeatfeatures From Biomart Or The Ensembl Rest Api?
2
1
Entering edit mode
10.8 years ago
William ★ 5.3k

How can I get all the all the Ensembl RepeatFeatures for a single species from Biomart or the Ensembl REST API?

I don't think the repeats are accessible from biomart (or I cant find them) and I am not sure how to use the Esembl rest API to download all the RepeatFeatures. It would be nice to have the output in the Bed format or something close to it.

repeats ensembl • 3.3k views
ADD COMMENT
2
Entering edit mode
10.8 years ago
Emily 23k

Hi William

I'm afraid that's not possible using BioMart or the REST API. BioMart doesn't have access to genomic features such as repeats. The REST API is still in its early stages and has a limited number of endpoints; repeats is not one of them.

The way to get this data is using the Perl API. You can use the RepeatFeatureAdaptor to get all the repeats, then use the RepeatFeature module to print the data you need. It will be easy to print this in Bed format using Perl.

Let me know if you need any help with scripting.

Emily

ADD COMMENT
2
Entering edit mode
10.8 years ago

Just to add to this, it is possible through the Ensembl REST, but you have to specify a region:

http://beta.rest.ensembl.org/feature/region/human/3:1000-200000.gff3?feature=repeat

Cheers,
Giulietta

ADD COMMENT
1
Entering edit mode

Also you can switch the output to JSON using the following URL http://beta.rest.ensembl.org/feature/region/human/3:1000-200000.json?feature=repeat

ADD REPLY

Login before adding your answer.

Traffic: 1498 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