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