Skip to content

Instantly share code, notes, and snippets.

@iwan

iwan/query_biomart

Created Oct 17, 2013
Embed
What would you like to do?
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
You can’t perform that action at this time.