def get_F_y(fname='<STR_LIT>', y=['<STR_LIT>']):
<EOL>f = open(fname,'<STR_LIT:r>')<EOL>data = json.load(f)<EOL>f.close()<EOL>occurr = []<EOL>for cell_type in y:<EOL><INDENT>occurr += [data['<STR_LIT:data>'][cell_type]['<STR_LIT>']]<EOL><DEDENT>return list(np.array(occurr)/np.sum(occurr))<EOL>
Extract frequency of occurrences of those cell types that are modeled.
The data set contains cell types that are not modeled (TCs etc.)
The returned percentages are renormalized onto modeled cell-types, i.e. they sum up to 1