Skip to content

Do not propose ligation of overhangs with ambiguous bases - #694

Open
barlowa124 wants to merge 1 commit into
pydna-group:masterfrom
barlowa124:fix-ambiguous-overhang-ligation-691
Open

barlowa124 wants to merge 1 commit into
pydna-group:masterfrom
barlowa124:fix-ambiguous-overhang-ligation-691

Conversation

@barlowa124

Copy link
Copy Markdown

Closes #691.

Overhang comparison in sum_is_sticky is a plain string match, so two
ends containing N count as compatible and the join gets proposed. Product
construction then fails with TypeError downstream because
single-stranded regions reject ambiguous bases, at the internal
join or at circular closure.

Sticky ends that contain anything outside ACGT no longer count as
matching. Tests cover the match-level behavior and both reporter
assembly cases. test_module_utils.py and test_module_assembly2.py
pass.

sum_is_sticky compares overhangs as strings, so N matched N and the
join was proposed even though the product cannot represent an N in a
single-stranded region. The assembly then failed with TypeError at the
internal join or at circular closure (pydna-group#691).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

restriction_ligation_assembly proposes joins through N-containing overhangs, then fails with TypeError

1 participant