-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from UC-Davis-molecular-computing/dev
Dev
- Loading branch information
Showing
38 changed files
with
1,797 additions
and
1,756 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
examples/4_helix_grid_none_min_offset_position_x_nondefault.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import scadnano as sc | ||
|
||
|
||
def main(): | ||
length = 16 | ||
helices = [ | ||
sc.Helix(major_tick_distance=4, max_offset=length, position=sc.Position3D(x=0, y=0, z=0), | ||
min_offset=0), | ||
sc.Helix(major_tick_distance=4, max_offset=length, position=sc.Position3D(x=0, y=3, z=3), | ||
min_offset=8), | ||
sc.Helix(major_tick_distance=4, max_offset=length, position=sc.Position3D(x=2.5, y=-3, z=8), | ||
min_offset=0), | ||
sc.Helix(major_tick_distance=4, max_offset=length, position=sc.Position3D(x=2.5, y=1, z=11), | ||
min_offset=8), | ||
] | ||
design = sc.DNADesign(helices=helices, strands=[ | ||
sc.Strand([sc.Domain(0, True, 0, length)]), | ||
sc.Strand([sc.Domain(1, True, 8, length)]), | ||
sc.Strand([sc.Domain(2, True, 0, length)]), | ||
sc.Strand([sc.Domain(3, True, 8, length)]), | ||
], grid=sc.Grid.none) | ||
|
||
return design | ||
|
||
|
||
if not sc.in_browser() and __name__ == '__main__': | ||
design = main() | ||
design.write_scadnano_file(directory='output_designs') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
examples/output_designs/4_helix_grid_none_min_offset_position_x_nondefault.dna
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"version": "0.9.0", | ||
"grid": "none", | ||
"helices": [ | ||
{ | ||
"position": {"x": 0, "y": 0, "z": 0}, | ||
"major_tick_distance": 4 | ||
}, | ||
{ | ||
"min_offset": 8, | ||
"position": {"x": 0, "y": 3, "z": 3}, | ||
"major_tick_distance": 4 | ||
}, | ||
{ | ||
"position": {"x": 2.5, "y": -3, "z": 8}, | ||
"major_tick_distance": 4 | ||
}, | ||
{ | ||
"min_offset": 8, | ||
"position": {"x": 2.5, "y": 1, "z": 11}, | ||
"major_tick_distance": 4 | ||
} | ||
], | ||
"strands": [ | ||
{ | ||
"color": "#333333", | ||
"domains": [ | ||
{"helix": 0, "forward": true, "start": 0, "end": 16} | ||
] | ||
}, | ||
{ | ||
"color": "#320096", | ||
"domains": [ | ||
{"helix": 1, "forward": true, "start": 8, "end": 16} | ||
] | ||
}, | ||
{ | ||
"color": "#03b6a2", | ||
"domains": [ | ||
{"helix": 2, "forward": true, "start": 0, "end": 16} | ||
] | ||
}, | ||
{ | ||
"color": "#7300de", | ||
"domains": [ | ||
{"helix": 3, "forward": true, "start": 8, "end": 16} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.