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

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

Revamped documentation.

Line 
1import random
2import obiGO
3import obimiRNA
4
5annotations = obiGO.Annotations('hsa',obiGO.Ontology())
6miRNAs = random.sample(obimiRNA.ids('hsa'),10)
7
8print 'miRNA\tNumber of annotations\tGO_IDs\n'
9for mi,goList in obimiRNA.get_GO(miRNAs, annotations, goSwitch=False).items():
10    if goList:
11        print '%s\t%d\t%s' % (mi, len(goList), ','.join(goList[0:4])+'...')
Note: See TracBrowser for help on using the repository browser.