Esempio n. 1
0
def get_probesets_by_platform():
    temp = sorted(probesets, key=attrgetter('platform_id'))
    filled = []
    for ps in temp:
        row = {}
        row['platform'] = {'id': ps.platform_id, 'name': platforms[ps.platform_id]}
        row['transcriptome'] = {'id': ps.transcriptome_id, 'name': transcriptomes[ps.transcriptome_id]}
        filled.append(row)
    
    return filled
Esempio n. 2
0
def get_data_sets_by_cancer_type():
    ds = sorted(data_sets, key=attrgetter('cancer_type', 'data_source', 'data_type'))
    return fill_data_source_meta(ds)