Exemplo n.º 1
0
import random
import obimiRNA

mirnaHSA = obimiRNA.ids('hsa')

for pm in reduce(lambda x, y: x + y, [
        obimiRNA.get_info(m).pre_forms.split(',')
        for m in random.sample(mirnaHSA, 3)
]):
    pre_miRNA = obimiRNA.get_info(pm, type='pre')
    print
    print 'Pre-miRNA name: %s' % pm
    print 'Accession Number: %s' % pre_miRNA.preACC
    print 'Accession Number of mature form(s): %s' % pre_miRNA.matACCs
    print 'PubMed accession number(s): %s' % pre_miRNA.pubIDs
    print 'Pre-miRNAs clustered together with %s: %s' % (pm,
                                                         pre_miRNA.clusters)
    print 'Link to miRBase: %s' % pre_miRNA.web_addr
Exemplo n.º 2
0
import random
import obimiRNA

mirnaHSA = obimiRNA.ids('hsa')

for pm in reduce(lambda x,y: x+y, [obimiRNA.get_info(m).pre_forms.split(',') for m in random.sample(mirnaHSA,3)]):                                    
    pre_miRNA = obimiRNA.get_info(pm,type='pre')
    print
    print 'Pre-miRNA name: %s' % pm
    print 'Accession Number: %s' % pre_miRNA.preACC
    print 'Accession Number of mature form(s): %s' % pre_miRNA.matACCs
    print 'PubMed accession number(s): %s' % pre_miRNA.pubIDs
    print 'Pre-miRNAs clustered together with %s: %s' % (pm, pre_miRNA.clusters)
    print 'Link to miRBase: %s' % pre_miRNA.web_addr
Exemplo n.º 3
0
import random
import obimiRNA

miRNAs = obimiRNA.ids()

print 'miRNA name\tAccession_Number\t\tSequence\t\tPre-forms\n'
for m in random.sample(miRNAs, 10):
    accession = obimiRNA.get_info(m).matACC
    sequence = obimiRNA.get_info(m).matSQ
    preForms = obimiRNA.get_info(m).pre_forms
    print '%s\t%s\t\t%s\t\t%s' % (m, accession, sequence, preForms)