Beispiel #1
0
 def test_replace_degenerate_residues(self):
     seqs = ['ACGTRYKMSWN']
     newseq = st.replace_degenerate_residues(seqs)[0]
     self.assertTrue(
         re.match('ACGT[GA][TC][GT][AC][GC][AT][GATC]', newseq) != None)
Beispiel #2
0
 def test_replace_degenerate_residues_multi(self):
     """Test ensures that spaces in the string will be preserved"""
     seqs = ['ACGTRY KMSWN']
     newseq = st.replace_degenerate_residues(seqs)[0]
     self.assertTrue(
         re.match('ACGT[GA][TC] [GT][AC][GC][AT][GATC]', newseq) != None)
Beispiel #3
0
 def test_replace_degenerate_residues_leading_trailing_whitespace(self):
     seqs = ['  \nACGTRYKMSWN \t']
     newseq = st.replace_degenerate_residues(seqs)[0]
     self.assertTrue(
         re.match('ACGT[GA][TC][GT][AC][GC][AT][GATC]', newseq) != None)
Beispiel #4
0
 def test_replace_degenerate_residues(self):
     seqs = ['ACGTRYKMSWN']
     newseq = st.replace_degenerate_residues(seqs)[0]
     self.assertTrue(re.match('ACGT[GA][TC][GT][AC][GC][AT][GATC]', newseq) != None)
Beispiel #5
0
 def test_replace_degenerate_residues_multi(self):
     """Test ensures that spaces in the string will be preserved"""
     seqs = ['ACGTRY KMSWN']
     newseq = st.replace_degenerate_residues(seqs)[0]
     self.assertTrue(re.match('ACGT[GA][TC] [GT][AC][GC][AT][GATC]', newseq) != None)
Beispiel #6
0
 def test_replace_degenerate_residues_leading_trailing_whitespace(self):
     seqs = ['  \nACGTRYKMSWN \t']
     newseq = st.replace_degenerate_residues(seqs)[0]
     self.assertTrue(re.match('ACGT[GA][TC][GT][AC][GC][AT][GATC]', newseq) != None)