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

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

Revamped documentation.

Line 
1"""
2Print out some information on specific GEO's data set.
3Does not download the data set.
4"""
5
6import obiGEO
7import textwrap
8
9gdsinfo = obiGEO.GDSInfo()
10gds = gdsinfo["GDS10"]
11
12print "ID:", gds["dataset_id"]
13print "Features:", gds["feature_count"]
14print "Genes:", gds["gene_count"]
15print "Organism:", gds["platform_organism"]
16print "PubMed ID:", gds["pubmed_id"]
17print "Sample types:"
18for sampletype in set([sinfo["type"] for sinfo in gds["subsets"]]):
19    ss = [sinfo["description"] for sinfo in gds["subsets"] if sinfo["type"]==sampletype]
20    print %s (%s)" % (sampletype, ", ".join(ss))
21print
22print "Description:"
23print "\n".join(textwrap.wrap(gds["description"], 70))
Note: See TracBrowser for help on using the repository browser.