source: orange-bioinformatics/doc/modules/geo_gds1.py @ 910:4c5d85bcbf67

Revision 910:4c5d85bcbf67, 677 bytes checked in by blaz <blaz.zupan@…>, 5 years ago (diff)

minor changes

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.