Пример #1
0
 def __init__(self,record):
     self.record = record
     self.name   = record[0].split()[1]
     self.seq    = record[1]
     self.stt    = record[2]
     (self.s,self.n) = parseSecStr(self.stt)
     (self.nussinov_s,self.nussinov_e) = nussinov(self.seq)
     (self.nussinov_sp,self.nussinov_n) = parseSecStr(self.nussinov_s)
     (self.runRNAFold_s,self.runRNAFold_e) = runRNAFold(self.seq)
     (self.runRNAFold_sp,self.runRNAFold_n) = parseSecStr(self.runRNAFold_s)
Пример #2
0
def delta(seq) :
    (struct_1,energy_1) = runRNAFold(seq)
    (struct_2,energy_2) = nussinov(seq)
    # print (struct_1,energy_1), (struct_2,energy_2)
    return energy_2 - energy_1