Skip to content

Commit

Permalink
add unit test for ihfold v3 parse
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed May 7, 2024
1 parent e3cdc7a commit 1260ffd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/unit/test_foreign.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,29 @@ def test_ihfoldv2_parse(stdout, result):
assert ihfold.parse_output(stdout, ihfold.PATTERN_V2) == result


IHFOLDV3_OUTPUT = """
GGCACGAUCGGGCUCGCUGCCUUUUCGUCCGAGAGCUCGAA
[[[[...((((((((..]]]]...........)))))))). (-10.15)
"""


@pytest.mark.parametrize(
"stdout, result",
[
(
IHFOLDV3_OUTPUT,
{
"dot_bracket": "[[[[...((((((((..]]]]...........)))))))).",
"stems": 24,
"energy": -10.15,
},
),
],
)
def test_ihfoldv3_parse(stdout, result):
assert ihfold.parse_output(stdout, ihfold.PATTERN_V3) == result


HOTKNOTS_OUTPUT = (
"Total number of RNA structures: 1\nSeq: AUGAAAG\nS0: .([.)].\t-3.2\n"
)
Expand Down

0 comments on commit 1260ffd

Please sign in to comment.