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

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

Renamed addon reference documentation.

Line 
1import orange, obiGsea, obiGene
2
3data = orange.ExampleTable("iris")
4
5gen1 = dict([
6    ("sepal",["sepal length", "sepal width"]), 
7    ("petal",["petal length", "petal width", "petal color"])
8    ])
9
10res = obiGsea.runGSEA(data, matcher=obiGene.matcher([]), minSize=2, geneSets=gen1)
11print "%5s  %6s %6s %s" % ("LABEL", "NES", "P-VAL", "GENES")
12for name,resu in res.items():
13    print "%5s  %6.3f %6.3f %s" % (name, resu["nes"], resu["p"], str(resu["genes"]))
Note: See TracBrowser for help on using the repository browser.