Beispiel #1
0
 def test_kr_stereo(self, mocked_get):
     for char in string.ascii_uppercase:
         mocked_get.return_value = [DummyAlignment("match", {102: char})]
         pairings = analysis.pksi_kr_stereo(self.record)
         if char == "D":
             assert pairings == [("match", "KR domain putatively catalyzing D-configuration product formation")]
         else:
             assert pairings == [("match", "KR domain putatively catalyzing L-configuration product formation")]
 def test_kr_stereo(self):
     for char in string.ascii_uppercase:
         mock("active_site_finder.common.ActiveSiteAnalysis.get_alignments",
              returns=[DummyAlignment("match", {102: char})])
         pairings = analysis.pksi_kr_stereo(self.record)
         if char == "D":
             assert pairings == [("match", "KR domain putatively catalyzing D-configuration product formation")]
         else:
             assert pairings == [("match", "KR domain putatively catalyzing L-configuration product formation")]
Beispiel #3
0
 def test_KR_stereo(self):
     mock("subprocessing.run_hmmpfam2",
          returns=parse_hmmpfam_results("KR.output"))
     results = analysis.pksi_kr_stereo(self.record)
     expected = {
         'PKS_KR1':
         'KR domain putatively catalyzing D-configuration product formation',
         'PKS_KR2':
         'KR domain putatively catalyzing D-configuration product formation'
     }
     assert {dom.domain_id: message for dom, message in results} == expected