Skip to content

Instantly share code, notes, and snippets.

@chapmanb
Created February 10, 2010 08:40
Show Gist options
  • Save chapmanb/300147 to your computer and use it in GitHub Desktop.
Save chapmanb/300147 to your computer and use it in GitHub Desktop.
from intermine import Intermine, ExperimentQueryBuilder
builder = ExperimentQueryBuilder()
builder.add_attributes(["submission_id", "experiment_name"])
builder.add_filter("organism", "Caenorhabditis elegans")
builder.free_text_filter("ChIP-seq")
server = Intermine("http://intermine.modencode.org")
table = server.search(builder)
print table.dtype.names
print table
# ('submission_id', 'experiment_name')
# [('582', 'ChIP-Seq Identification of C. elegans TF Binding Sites')
# ('584', 'ChIP-Seq Identification of C. elegans TF Binding Sites')
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment