comparison dgidb_annotator.py @ 2:792f3cb0eff4 draft

Uploaded
author devteam
date Tue, 25 Feb 2014 14:19:17 -0500
parents 8cc7cf4bd833
children c5bb987015c5
comparison
equal deleted inserted replaced
1:8cc7cf4bd833 2:792f3cb0eff4
33 33
34 # Query for results. 34 # Query for results.
35 query_str = 'http://dgidb.genome.wustl.edu/api/v1/interactions.json?genes=%s' % ','.join(set(gene_list)) 35 query_str = 'http://dgidb.genome.wustl.edu/api/v1/interactions.json?genes=%s' % ','.join(set(gene_list))
36 if options.expert_curated: 36 if options.expert_curated:
37 query_str += '&source_trust_levels=Expert%20curated' 37 query_str += '&source_trust_levels=Expert%20curated'
38 print query_str
39 results = urllib2.urlopen(query_str).read() 38 results = urllib2.urlopen(query_str).read()
40 results_dict = json.loads(results) 39 results_dict = json.loads(results)
41 40
42 # Process results. 41 # Process results.
43 matched_results = results_dict['matchedTerms'] 42 matched_results = results_dict['matchedTerms']