source: orange-bioinformatics/doc/modules/mirnaExample5.py @ 1092:df599b7f3728

Revision 1092:df599b7f3728, 385 bytes checked in by riccardoberetta <riccardoberetta@…>, 4 years ago (diff)
Line 
1import random
2import obimiRNA
3
4miRNAs = random.sample(obimiRNA.ids('hsa'),10)
5
6mirPath_all= obimiRNA.get_pathways(miRNAs,enrichment=False, pathSwitch=False)
7mirPath_enr = obimiRNA.get_pathways(miRNAs,enrichment=True, pathSwitch=False)
8
9print 'miRNA_name\t# of pathways\t# of enriched pathways\n'
10for m in miRNAs:
11    print '%s\t\t%d\t\t%d' % (m,len(mirPath_all[m]),len(mirPath_enr[m]))
Note: See TracBrowser for help on using the repository browser.