def test_helix5(self): logfile = os.path.join(self.testfiles_dir, "ncont5.log") dssplog = os.path.join(self.testfiles_dir, "3RA3.dssp") c = rio.Rio() contactData = rio.RioData() c.parseNcontLog(contactData, logfile=logfile, clean_up=False) sequence = c.helixFromContacts(contactData.contacts, dssplog) self.assertEqual("NARLKQEIAALEYEIAAL", sequence)
def test_parse8(self): logfile = os.path.join(self.testfiles_dir, "ncont8.log") c = rio.Rio() contactData = rio.RioData() c.parseNcontLog(contactData, logfile=logfile, clean_up=False) c.analyseRio(contactData) self.assertEqual(contactData.numContacts, 9) self.assertEqual(contactData.rioInRegister, 0) self.assertEqual(contactData.rioOoRegister, 0) self.assertEqual(contactData.rioBackwards, 0)