def score_multi_forester(basestruct, checkstruct, foresterscore): if score_local_rnaforester(basestruct, checkstruct) > foresterscore: return checkstruct else: return ""
def test_score_local_rnaforester(self): struct1 = "....((.((.(((((((.((((((((....((...))(((((((...(((...((......))...))).))))))).....)))))).........))..))))).)).))))..." struct2 = "(((....))).......(((((..(((((......(((((((...(((...(((....)))...))).)))))))...)))))))))).......(((((((....))))))).." obs = score_local_rnaforester(struct1, struct2) self.assertEqual(obs, 137)