Skip to content
Snippets Groups Projects
Commit 88013d57 authored by Tobias Schmidt's avatar Tobias Schmidt
Browse files

updated clustalw unittests for nopgap option

parent bb59a0df
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ class TestClustalWBindings(unittest.TestCase): ...@@ -13,6 +13,7 @@ class TestClustalWBindings(unittest.TestCase):
self.templseq = io.LoadSequence("testfiles/similar.fasta") self.templseq = io.LoadSequence("testfiles/similar.fasta")
self.multseq = io.LoadSequenceList("testfiles/multiple.fasta") self.multseq = io.LoadSequenceList("testfiles/multiple.fasta")
self.pw_alignment = io.LoadAlignment("testfiles/pairwise_aln.fasta") self.pw_alignment = io.LoadAlignment("testfiles/pairwise_aln.fasta")
self.nopgap_pw_alignment = io.LoadAlignment("testfiles/nopgap_pairwise_aln.fasta")
self.mult_alignment = io.LoadAlignment("testfiles/multiple_aln.fasta") self.mult_alignment = io.LoadAlignment("testfiles/multiple_aln.fasta")
def testPairwiseClustalW(self): def testPairwiseClustalW(self):
...@@ -20,6 +21,11 @@ class TestClustalWBindings(unittest.TestCase): ...@@ -20,6 +21,11 @@ class TestClustalWBindings(unittest.TestCase):
assert self.pw_alignment.ToString(80) == aln.ToString(80), \ assert self.pw_alignment.ToString(80) == aln.ToString(80), \
"Pairwise alignment differs from precomputed one" "Pairwise alignment differs from precomputed one"
def testNoPGapPariwiseClustalW(self):
aln=clustalw.ClustalW(self.targetseq, self.templseq, nopgap=True)
assert self.nopgap_pw_alignment.ToString(80) == aln.ToString(80), \
"NoPGap pairwise alignment differs from precomputed one"
def testAttachedViewClustalW(self): def testAttachedViewClustalW(self):
aln=clustalw.ClustalW(self.targetseq, self.templseq) aln=clustalw.ClustalW(self.targetseq, self.templseq)
assert aln.FindSequence("testseq").HasAttachedView(), \ assert aln.FindSequence("testseq").HasAttachedView(), \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment