I am going to use wget to download data from ensembl plants biomart
By following the instruction here: https://plants.ensembl.org/info/data/biomart/biomart_restful.html#biomartperlapi
I use this command:
wget -O result.txt 'http://www.ensembl.org/biomart/martservice?query=<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE Query><Query virtualSchemaName = "plants_mart" formatter = "TSV" header = "0" uniqueRows = "0" count = "" datasetConfigVersion = "0.6" ><Dataset name = "athaliana_eg_gene" interface = "default" ><Attribute name = "ensembl_gene_id" /><Attribute name = "external_gene_name" /><Attribute name = "chromosome_name" /><Attribute name = "go_id" /><Attribute name = "go_linkage_type" /><Attribute name = "entrezgene_id" /></Dataset></Query>'
I do get the result.txt, but here is what inside:
Query ERROR: caught BioMart::Exception::Usage: WITHIN Virtual Schema : plants_mart, Dataset athaliana_eg_gene NOT FOUND
here is my xml file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Query>
<Query virtualSchemaName = "plants_mart" formatter = "TSV" header = "0" uniqueRows = "0" count = "" datasetConfigVersion = "0.6" >
<Dataset name = "athaliana_eg_gene" interface = "default" >
<Attribute name = "ensembl_gene_id" />
<Attribute name = "external_gene_name" />
<Attribute name = "chromosome_name" />
<Attribute name = "go_id" />
<Attribute name = "go_linkage_type" />
<Attribute name = "entrezgene_id" />
</Dataset>
</Query>
I am so confused because I got this xml file as the image shows
Does anyone could tell me what's wrong?
A couple of hours back using
plants.ensembl.org
was generating a 504 error but it seems to be working now.Thank you very much, that works perfectly :) ! Maybe someone needs to use a plant dataset as an example (instead of human dataset ) in the https://plants.ensembl.org/info/data/biomart/biomart_restful.html#biomartperlapi