Created
February 15, 2010 15:33
-
-
Save chapmanb/304736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from intermine import Intermine, SubmissionQueryBuilder | |
builder = SubmissionQueryBuilder() | |
builder.add_attributes(["submission_id", | |
"submission_title", "developmental_stage"]) | |
builder.add_filter("organism", "Caenorhabditis elegans") | |
builder.add_filter("antibody_name", "H3K4me3") | |
server = Intermine("http://intermine.modencode.org") | |
table = server.search(builder) | |
print table.dtype.names | |
print table | |
# ('submission_id', 'submission_title', 'developmental_stage') | |
# [('176', 'Histone_H3K4me3_from_N2_L3_larvae_(AR0169_H3K4me3_N2_L3)', '') | |
# ('2311', 'Histone_H3K4me3_N2_EEMB_(WA30534819_H3K4ME3_N2_EEMB)', | |
# 'Early Stage Embryos') | |
# ('2410', 'Histone_H3K79me1_N2_EEMB_(AB2886_H3K79ME1361912_N2_EEMB)', | |
# 'Early Stage Embryos')] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment