Skip to content

Instantly share code, notes, and snippets.

@chapmanb
Created February 11, 2010 09:29
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 chapmanb/301357 to your computer and use it in GitHub Desktop.
Save chapmanb/301357 to your computer and use it in GitHub Desktop.
from systemsbio import Biogateway, ReferenceBuilder
builder = ReferenceBuilder()
builder.add_filter("protein_id", "1433B_HUMAN")
builder.add_attributes(["reference"])
server = Biogateway()
results = server.search(builder)
print len(results), results.dtype.names
result = results[0]
print result['protein_id'], result['reference']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment