Skip to content

Commit

Permalink
modified circular strand example script to have length 8 domains
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-doty committed Dec 14, 2020
1 parent 8eda390 commit c58b832
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions examples/circular.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import dataclasses

def create_design():
helices = [sc.Helix(max_offset=30) for _ in range(2)]
helices = [sc.Helix(max_offset=24) for _ in range(2)]
design = sc.Design(helices=helices, grid=sc.square)

design.strand(0,0).move(10).cross(1).move(-10).as_circular()
design.strand(0,10).move(10).loopout(1, 5).move(-10).as_circular()
design.strand(0,20).move(10).cross(1).move(-10)
design.strand(0,0).move(8).cross(1).move(-8).as_circular()
design.strand(0,8).move(8).loopout(1, 5).move(-8).as_circular()
design.strand(0,16).move(8).cross(1).move(-8)

return design

Expand Down
14 changes: 7 additions & 7 deletions examples/output_designs/circular.sc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.13.0",
"version": "0.13.1",
"grid": "square",
"helices": [
{"grid_position": [0, 0]},
Expand All @@ -10,24 +10,24 @@
"circular": true,
"color": "#f74308",
"domains": [
{"helix": 0, "forward": true, "start": 0, "end": 10},
{"helix": 1, "forward": false, "start": 0, "end": 10}
{"helix": 0, "forward": true, "start": 0, "end": 8},
{"helix": 1, "forward": false, "start": 0, "end": 8}
]
},
{
"circular": true,
"color": "#57bb00",
"domains": [
{"helix": 0, "forward": true, "start": 10, "end": 20},
{"helix": 0, "forward": true, "start": 8, "end": 16},
{"loopout": 5},
{"helix": 1, "forward": false, "start": 10, "end": 20}
{"helix": 1, "forward": false, "start": 8, "end": 16}
]
},
{
"color": "#888888",
"domains": [
{"helix": 0, "forward": true, "start": 20, "end": 30},
{"helix": 1, "forward": false, "start": 20, "end": 30}
{"helix": 0, "forward": true, "start": 16, "end": 24},
{"helix": 1, "forward": false, "start": 16, "end": 24}
]
}
]
Expand Down

0 comments on commit c58b832

Please sign in to comment.