Esempio n. 1
0
 def test_process_primers_only_fwd(self):
     obs_primers = _process_primers(self.primers_dict["forward"], None)
     obs_primers = {
         seq.metadata['id']: str(seq)
         for seq in obs_primers.view(DNAIterator)
     }
     exp_primers = {"forward": "GGGAATCTTCCACAATGG"}
     self.assertDictEqual(obs_primers, exp_primers)
Esempio n. 2
0
 def test_process_primers_only_rev(self):
     obs_primers = _process_primers(None, self.primers_dict["reverse"])
     obs_primers = {
         seq.metadata['id']: str(seq)
         for seq in obs_primers.view(DNAIterator)
     }
     exp_primers = {"reverse": "CTGTTGTTAGAGAAGAACAC"}
     self.assertDictEqual(obs_primers, exp_primers)
Esempio n. 3
0
 def test_process_primers(self):
     obs_primers = _process_primers(self.primers_dict["forward"],
                                    self.primers_dict["reverse"])
     obs_primers = {
         seq.metadata['id']: str(seq)
         for seq in obs_primers.view(DNAIterator)
     }
     exp_primers = {
         "forward": "GGGAATCTTCCACAATGG",
         "reverse": "CTGTTGTTAGAGAAGAACAC"
     }
     self.assertDictEqual(obs_primers, exp_primers)