Skip to content

Commit

Permalink
Hopefully the final restriction site issue fixed...
Browse files Browse the repository at this point in the history
  • Loading branch information
biologyguy committed Dec 20, 2017
1 parent 9b41850 commit eed42eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
16 changes: 9 additions & 7 deletions buddysuite/tests/test_seqbuddy/test_sb_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,14 +1154,16 @@ def test_restriction_sites_circular(sb_resources, sb_odd_resources, hf):

# circular
tester = Sb.find_restriction_sites(sb_resources.get_one("d g"), topology="circular")
assert """LpnPI 1347..1350
LpnPI 75..78
LpnPI 81..84
LpnPI 118..121
LpnPI 216..219
assert """LpnPI 1227..1230
LpnPI 66..69
LpnPI 103..106
LpnPI 146..149
LpnPI 167..170
LpnPI 223..226
LpnPI 250..253
LpnPI 305..308""" in str(tester)
LpnPI 281..284
LpnPI 308..311
LpnPI 320..323
LpnPI 397..400""" in str(tester)

res_sites = [x for x in tester.restriction_sites if x[0] == "Mle-Panxα1"][0][1]
new_res_dict = {}
Expand Down
14 changes: 7 additions & 7 deletions buddysuite/tests/test_seqbuddy/test_sb_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,20 +706,20 @@ def test_find_restriction_sites_ui(capsys, sb_resources):
Sb.command_line_ui(test_in_args, sb_resources.get_one('d f'), True)
out, err = capsys.readouterr()
assert """FEATURES Location/Qualifiers
LpnPI 75..78
LpnPI 81..84
LpnPI 118..121""" in out
LpnPI 66..69
LpnPI 103..106
LpnPI 146..149""" in out

# Test topology set as circular
test_in_args = deepcopy(in_args)
test_in_args.find_restriction_sites = [["LpnPI", "circ"]]
Sb.command_line_ui(test_in_args, sb_resources.get_one('d f'), True)
out, err = capsys.readouterr()
assert """FEATURES Location/Qualifiers
LpnPI 1347..1350
LpnPI 75..78
LpnPI 81..84
LpnPI 118..121""" in out
LpnPI 1227..1230
LpnPI 66..69
LpnPI 103..106
LpnPI 146..149""" in out


# ###################### '-gbp', '--group_by_prefix' ###################### #
Expand Down

0 comments on commit eed42eb

Please sign in to comment.