source: orange-bioinformatics/docs/reference/mirnaExample5.py @ 1634:32373d957326

Revision 1634:32373d957326, 385 bytes checked in by mitar, 2 years ago (diff)

Renamed addon reference documentation.

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.