-
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 #96 from UC-Davis-molecular-computing/dev
Dev
- Loading branch information
Showing
66 changed files
with
4,673 additions
and
3,389 deletions.
There are no files selected for viewing
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,25 @@ | ||
name: "release" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
release: | ||
name: "Release" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
# ... | ||
- name: "Build & test" | ||
run: | | ||
echo "done!" | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "latest" | ||
prerelease: false | ||
title: "Development Build [TODO: Replace label and number with version number]" | ||
files: | | ||
LICENSE.txt |
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
44 changes: 44 additions & 0 deletions
44
examples/2_staple_2_helix_origami_deletions_insertions_labels.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,44 @@ | ||
import scadnano as sc | ||
|
||
|
||
def main(): | ||
# helices | ||
helices = [sc.Helix(max_offset=48), sc.Helix(max_offset=48)] | ||
|
||
# left staple | ||
stap_left_ss1 = sc.Domain(helix=1, forward=True, start=8, end=24) | ||
stap_left_ss0 = sc.Domain(helix=0, forward=False, start=8, end=24) | ||
stap_left = sc.Strand(domains=[stap_left_ss1, stap_left_ss0], | ||
label='left staple') | ||
|
||
# right staple | ||
stap_right_ss0 = sc.Domain(helix=0, forward=False, start=24, end=40) | ||
stap_right_ss1 = sc.Domain(helix=1, forward=True, start=24, end=40) | ||
stap_right = sc.Strand(domains=[stap_right_ss0, stap_right_ss1], | ||
label='right staple') | ||
|
||
# scaffold | ||
scaf_ss1_left = sc.Domain(helix=1, forward=False, start=8, end=24) | ||
scaf_ss0 = sc.Domain(helix=0, forward=True, start=8, end=40) | ||
loopout = sc.Loopout(length=3) | ||
scaf_ss1_right = sc.Domain(helix=1, forward=False, start=24, end=40) | ||
scaf = sc.Strand(domains=[scaf_ss1_left, scaf_ss0, loopout, scaf_ss1_right], is_scaffold=True, | ||
label='scaffold label') | ||
|
||
# whole design | ||
design = sc.DNADesign(helices=helices, strands=[scaf, stap_left, stap_right], grid=sc.square) | ||
|
||
# deletions and insertions added to design are added to both strands on a helix | ||
design.add_deletion(helix=1, offset=20) | ||
design.add_insertion(helix=0, offset=14, length=1) | ||
design.add_insertion(helix=0, offset=26, length=2) | ||
|
||
# also assigns complement to strands other than scaf bound to it | ||
design.assign_dna(scaf, 'AACGT' * 18) | ||
|
||
return design | ||
|
||
|
||
if __name__ == '__main__': | ||
design = main() | ||
design.write_scadnano_file(directory='output_designs') |
29 changes: 29 additions & 0 deletions
29
examples/2_staple_2_helix_origami_deletions_insertions_mods_chained_methods.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,29 @@ | ||
import scadnano as sc | ||
import modifications as mod | ||
|
||
|
||
def main(): | ||
# helices | ||
helices = [sc.Helix(max_offset=48), sc.Helix(max_offset=48)] | ||
|
||
# whole design | ||
design = sc.DNADesign(helices=helices, strands=[], grid=sc.square) | ||
|
||
design.strand(1, 8).to(24).cross(0).to(8) # left staple | ||
design.strand(0, 40).to(24).cross(1).to(40).with_modification_5p(mod.biotin_5p) # right staple | ||
design.strand(1, 24).to(8).cross(0).to(40).loopout(1, 3).to(24).as_scaffold() | ||
|
||
# deletions and insertions added to design are added to both strands on a helix | ||
design.add_deletion(helix=1, offset=20) | ||
design.add_insertion(helix=0, offset=14, length=1) | ||
design.add_insertion(helix=0, offset=26, length=2) | ||
|
||
# also assigns complement to strands other than scaf bound to it | ||
design.assign_dna(design.scaffold, 'AACGT' * 18) | ||
|
||
return design | ||
|
||
|
||
if __name__ == '__main__': | ||
design = main() | ||
design.write_scadnano_file(directory='output_designs') |
45 changes: 45 additions & 0 deletions
45
examples/2_staple_2_helix_origami_deletions_insertions_new_geometry.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,45 @@ | ||
import scadnano as sc | ||
|
||
|
||
def main(): | ||
# helices | ||
helices = [sc.Helix(max_offset=48), sc.Helix(max_offset=48)] | ||
|
||
# left staple | ||
stap_left_ss1 = sc.Domain(helix=1, forward=True, start=8, end=24) | ||
stap_left_ss0 = sc.Domain(helix=0, forward=False, start=8, end=24) | ||
stap_left = sc.Strand(domains=[stap_left_ss1, stap_left_ss0]) | ||
|
||
# right staple | ||
stap_right_ss0 = sc.Domain(helix=0, forward=False, start=24, end=40) | ||
stap_right_ss1 = sc.Domain(helix=1, forward=True, start=24, end=40) | ||
stap_right = sc.Strand(domains=[stap_right_ss0, stap_right_ss1]) | ||
|
||
# scaffold | ||
scaf_ss1_left = sc.Domain(helix=1, forward=False, start=8, end=24) | ||
scaf_ss0 = sc.Domain(helix=0, forward=True, start=8, end=40) | ||
loopout = sc.Loopout(length=3) | ||
scaf_ss1_right = sc.Domain(helix=1, forward=False, start=24, end=40) | ||
scaf = sc.Strand(domains=[scaf_ss1_left, scaf_ss0, loopout, scaf_ss1_right], is_scaffold=True) | ||
|
||
# geometry | ||
geometry = sc.Geometry(z_step=0.2, helix_radius=1.2, inter_helix_gap=1.0) | ||
|
||
# whole design | ||
design = sc.DNADesign(helices=helices, strands=[scaf, stap_left, stap_right], grid=sc.square, | ||
geometry=geometry) | ||
|
||
# deletions and insertions added to design are added to both strands on a helix | ||
design.add_deletion(helix=1, offset=20) | ||
design.add_insertion(helix=0, offset=14, length=1) | ||
design.add_insertion(helix=0, offset=26, length=2) | ||
|
||
# also assigns complement to strands other than scaf bound to it | ||
design.assign_dna(scaf, 'AACGT' * 18) | ||
|
||
return design | ||
|
||
|
||
if __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
Oops, something went wrong.