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

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

Revamped documentation.

Line 
1import obiGEO
2reload(obiGEO)
3
4# gds = obiGEO.GDS("GDS10")
5gds = obiGEO.GDS("GDS1210")
6
7data = gds.getdata(report_genes=True, transpose=False)
8print "report_genes=True, transpose=False"
9print "Report=Genes, Rows=Genes/Spots"
10print "rows=%d cols=%d has_class=%s" % (len(data), len(data.domain.attributes), data.domain.classVar<>None)
11print
12
13data = gds.getdata(report_genes=False, transpose=False)
14print "report_genes=False, transpose=False"
15print "Report=Spots, Rows=Genes/Spots"
16print "rows=%d cols=%d has_class=%s" % (len(data), len(data.domain.attributes), data.domain.classVar<>None)
17print
18
19data = gds.getdata(report_genes=True, transpose=True)
20print "report_genes=True, transpose=True"
21print "Report=Genes, Rows=Samples"
22print "rows=%d cols=%d has_class=%s" % (len(data), len(data.domain.attributes), data.domain.classVar<>None)
23print "Class values:", " ".join([str(cv) for cv in data.domain.classVar.values]) 
24print
25
26
27data = gds.getdata(report_genes=True, transpose=True, sample_type="tissue")
28print 'report_genes=True, transpose=True sample_type="tissue"'
29print "Report=Genes, Rows=Samples"
30print "rows=%d cols=%d has_class=%s" % (len(data), len(data.domain.attributes), data.domain.classVar<>None)
31print "Class values:", " ".join([str(cv) for cv in data.domain.classVar.values]) 
32print
Note: See TracBrowser for help on using the repository browser.