source: orange-bioinformatics/docs/reference-html/assess1.py @ 1662:427f1876f3e6

Revision 1662:427f1876f3e6, 364 bytes checked in by mitar, 2 years ago (diff)

Revamped documentation.

Line 
1import orange
2import obiAssess
3import obiGeneSets
4
5gs = obiGeneSets.collections([":kegg:hsa"])
6data = orange.ExampleTable("DLBCL.tab")
7
8asl = obiAssess.AssessLearner()
9ass = asl(data, "hsa", geneSets=gs)
10
11print "Enrichments for the first example (10 pathways)"
12enrichments = ass(data[0])
13for patw, enric in sorted(enrichments.items())[:10]:
14    print patw, enric
15
Note: See TracBrowser for help on using the repository browser.