import json 

import utils as tech 

from awesome_print import ap 

taxonomy = json.load(open('../data/drug-taxonomy.json','rb'))

effects = set(tech.flatten([taxonomy[drug]["effects"] for drug in taxonomy]))

with open('../data/master-effects-list','wb') as fid:
	for effect in effects:
		print>>fid,effect
b2c631d56f46c8245b73ae6d98ec0abada742298
<mask token>

<mask token>
with open('../data/master-effects-list', 'wb') as fid:
    for effect in effects:
        print >> fid, effect

<mask token>
taxonomy = json.load(open('../data/drug-taxonomy.json', 'rb'))
effects = set(tech.flatten([taxonomy[drug]['effects'] for drug in taxonomy]))
with open('../data/master-effects-list', 'wb') as fid:
    for effect in effects:
        print >> fid, effect

import json
import utils as tech
from awesome_print import ap
taxonomy = json.load(open('../data/drug-taxonomy.json', 'rb'))
effects = set(tech.flatten([taxonomy[drug]['effects'] for drug in taxonomy]))
with open('../data/master-effects-list', 'wb') as fid:
    for effect in effects:
        print >> fid, effect

import json 

import utils as tech 

from awesome_print import ap 

taxonomy = json.load(open('../data/drug-taxonomy.json','rb'))

effects = set(tech.flatten([taxonomy[drug]["effects"] for drug in taxonomy]))

with open('../data/master-effects-list','wb') as fid:
	for effect in effects:
		print>>fid,effect