Exemple #1
0
 def test_locate_positions_no_primers(self):
     obs_pos = _locate_primer_positions(self.aligned_seqs_fasta)
     exp_pos = {"start": None, "end": None}
     self.assertDictEqual(obs_pos, exp_pos)
Exemple #2
0
 def test_locate_positions_strange_alignment(self):
     with self.assertRaisesRegex(ValueError, 'Reverse primer overlaps'):
         _locate_primer_positions(self.aligned_mess_fasta)
Exemple #3
0
 def test_locate_positions_only_rev(self):
     obs_pos = _locate_primer_positions(self.aligned_with_rev_fasta)
     exp_pos = {"start": None, "end": 104}
     self.assertDictEqual(obs_pos, exp_pos)