Skip to content

Commit

Permalink
Update scadnano_tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-doty committed Dec 3, 2022
1 parent 7b83a43 commit 5312a59
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/scadnano_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7856,7 +7856,6 @@ def test_find_overlapping_domains(self) -> None:
d12r = self.design.strands[14].domains[0]

overlapping_domains_h0 = sc.find_overlapping_domains_on_helix(self.design.helices[0])

overlapping_domains_h1 = sc.find_overlapping_domains_on_helix(self.design.helices[1])

self.assertEqual(len(overlapping_domains_h0), 4)
Expand Down Expand Up @@ -8015,7 +8014,7 @@ def test_design_base_pairs_dna_on_some_strands_and_mismatches(self) -> None:
TTCTT
'''
design = sc.Design(helices=[sc.Helix(max_offset=100)])
design.draw_strand(0, 0).move(10).with_sequence('A'*10)
design.draw_strand(0, 0).move(10).with_sequence('A' * 10)
design.draw_strand(0, 5).move(-5).with_sequence('TTCTT')
design.draw_strand(0, 10).move(-5)

Expand All @@ -8039,9 +8038,9 @@ def test_design_base_pairs_deletions_insertions(self) -> None:
'''
design = sc.Design(helices=[sc.Helix(max_offset=100)])
design.draw_strand(0, 0).move(10).with_deletions([1, 2]).with_insertions([(6, 1), (7, 1)]) \
.with_sequence('A'*10)
.with_sequence('A' * 10)
design.draw_strand(0, 5).move(-5).with_deletions([2, 3]).with_sequence('TTT')
design.draw_strand(0, 10).move(-5).with_insertions([(7, 1), (8, 1)]).with_sequence('TTTTTTT')
design.draw_strand(0, 10).move(-5).with_insertions([(7, 1), (8, 1)]).with_sequence('T' * 7)

base_pairs = design.base_pairs(allow_mismatches=False)
self.assertEqual(len(base_pairs), 1)
Expand All @@ -8065,7 +8064,7 @@ def test_design_base_pairs_deletions_insertions_mismatch_in_insertion(self) -> N
'''
design = sc.Design(helices=[sc.Helix(max_offset=100)])
design.draw_strand(0, 0).move(10).with_deletions([1, 2]).with_insertions([(6, 1), (7, 1)]) \
.with_sequence('A'*10)
.with_sequence('A' * 10)
design.draw_strand(0, 5).move(-5).with_deletions([2, 3]).with_sequence('TTT')
design.draw_strand(0, 10).move(-5).with_insertions([(7, 1), (8, 1)]).with_sequence('TTTCTTT')

Expand Down

0 comments on commit 5312a59

Please sign in to comment.