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

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

Renamed addon reference documentation.

Line 
1import random
2import obimiRNA
3
4mirnaHSA = obimiRNA.ids('hsa')
5
6for pm in reduce(lambda x,y: x+y, [obimiRNA.get_info(m).pre_forms.split(',') for m in random.sample(mirnaHSA,3)]):                                   
7    pre_miRNA = obimiRNA.get_info(pm,type='pre')
8    print
9    print 'Pre-miRNA name: %s' % pm
10    print 'Accession Number: %s' % pre_miRNA.preACC
11    print 'Accession Number of mature form(s): %s' % pre_miRNA.matACCs
12    print 'PubMed accession number(s): %s' % pre_miRNA.pubIDs
13    print 'Pre-miRNAs clustered together with %s: %s' % (pm, pre_miRNA.clusters)
14    print 'Link to miRBase: %s' % pre_miRNA.web_addr
Note: See TracBrowser for help on using the repository browser.