Skip to content

Instantly share code, notes, and snippets.

@iwan
Created October 17, 2013 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iwan/7027363 to your computer and use it in GitHub Desktop.
Save iwan/7027363 to your computer and use it in GitHub Desktop.
Biomart: manually send a query
Write the file q1.txt:
query=
<!DOCTYPE Query>
<Query client="true" processor="TSV" limit="100" header="1">
<Dataset name="hsapiens_snp" config="snp_1_config">
<Filter name="chr_name" value="22"/>
<Filter name="chrom_start" value="1"/>
<Filter name="chrom_end" value="80000000"/>
<Attribute name="refsnp_id"/>
<Attribute name="refsnp_source_description"/>
<Attribute name="chrom_start"/>
<Attribute name="allele"/>
<Attribute name="refsnp_source"/>
<Attribute name="chr_name"/>
<Attribute name="synonym_name"/>
</Dataset>
</Query>
From terminal:
curl -d @q1.txt http://localhost:9000/martservice/results > results.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment