Hii,
     I want to match two string which are in two different lists,I want to 
view the stings which are matched for example      string 1       
 ASDFFFASVSDSDDDGGGG
                                                                            
                                                                            
                        string 2            DFFFAS
     I am trying with the following code it is generating some output as I 
can 'loading...' while executing the program but nothing is displayed
       def match_oligos(): 
     if db(db.plugin_seq.id>0).select(): 
         if db(db.oligo_seq.id>0).select():
                seqlist=[]
                oligolist=[]
                message=[]
                for r in 
db(db.plugin_seq.id>0).select(db.plugin_seq.processed_seq):
                     seqlist.append(r)
                for o in 
db(db.oligo_seq.id>0).select(db.oligo_seq.oligo_processed_seq):
                     oligolist.append(o)  
                for m in oligolist:
                     for n in range(1,len(seqlist)):
                         k=n+len(m)
                         if m==seqlist[n:k]:
                            message.append('\nMatch found in : ' + str(m) + 
' at position: '+str(n))                              
                return UL([LI(item) for item in message])

-- 



Reply via email to