Esempio n. 1
0
    def __init__(self, oligomer, target):
        self.oligomer = oligomer
        self.target = target

        thermo = calcEndStability(self.oligomer, self.target)

        self.tm = thermo.tm
        self.dg = thermo.dg
        self.dh = thermo.dh
        self.ds = thermo.ds
Esempio n. 2
0
 def test_calcEndStability(self):
     for _ in range(100):
         self.randArgs()
         binding_res = bindings.calcEndStability(seq1=self.seq1,
                                                 seq2=self.seq2,
                                                 mv_conc=self.mv_conc,
                                                 dv_conc=self.dv_conc,
                                                 dntp_conc=self.dntp_conc,
                                                 dna_conc=self.dna_conc,
                                                 temp_c=self.temp_c,
                                                 max_loop=self.max_loop)
         wrapper_res = wrappers.calcEndStability(seq1=self.seq1,
                                                 seq2=self.seq2,
                                                 mv_conc=self.mv_conc,
                                                 dv_conc=self.dv_conc,
                                                 dntp_conc=self.dntp_conc,
                                                 dna_conc=self.dna_conc,
                                                 temp_c=self.temp_c,
                                                 max_loop=self.max_loop)
         self.assertEqual(int(binding_res.tm), int(wrapper_res.tm))
 def test_calcEndStability(self):
     for _ in range(25):
         self.randArgs()
         binding_res = bindings.calcEndStability(
                             seq1=self.seq1,
                             seq2=self.seq2,
                             mv_conc=self.mv_conc,
                             dv_conc=self.dv_conc,
                             dntp_conc=self.dntp_conc,
                             dna_conc=self.dna_conc,
                             temp_c=self.temp_c,
                             max_loop=self.max_loop)
         wrapper_res = wrappers.calcEndStability(
                             seq1=self.seq1,
                             seq2=self.seq2,
                             mv_conc=self.mv_conc,
                             dv_conc=self.dv_conc,
                             dntp_conc=self.dntp_conc,
                             dna_conc=self.dna_conc,
                             temp_c=self.temp_c,
                             max_loop=self.max_loop)
         self.assertEqual(int(binding_res.tm), int(wrapper_res.tm))