-
Notifications
You must be signed in to change notification settings - Fork 6
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 #280 from UC-Davis-molecular-computing/279-rename-…
…idtfields-to-vendorfields closes #279: rename IDTFields to VendorFields
- Loading branch information
Showing
69 changed files
with
33,875 additions
and
33,838 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
import scadnano as sc | ||
|
||
|
||
def create_design() -> sc.Design: | ||
ss1_r = sc.Domain(0, True, 0, 4) | ||
ss2_r = sc.Domain(0, True, 4, 8) | ||
ss3_r = sc.Domain(0, True, 8, 12) | ||
ss_l = sc.Domain(0, False, 0, 12) | ||
|
||
s1_r = sc.Strand([ss1_r], idt=sc.IDTFields(), name='s1_r') | ||
s2_r = sc.Strand([ss2_r], idt=sc.IDTFields(), name='s1_r') | ||
s3_r = sc.Strand([ss3_r], idt=sc.IDTFields(), name='s1_r') | ||
s_l = sc.Strand([ss_l], idt=sc.IDTFields(), name='s_l') | ||
s1_r = sc.Strand([ss1_r], vendor_fields=sc.VendorFields(), name='s1_r') | ||
s2_r = sc.Strand([ss2_r], vendor_fields=sc.VendorFields(), name='s1_r') | ||
s3_r = sc.Strand([ss3_r], vendor_fields=sc.VendorFields(), name='s1_r') | ||
s_l = sc.Strand([ss_l], vendor_fields=sc.VendorFields(), name='s_l') | ||
|
||
strands = [s1_r, s2_r, s3_r, s_l] | ||
|
||
design = sc.Design(strands=strands, grid=sc.square) | ||
|
||
design.assign_dna(s_l, 'AGTT'*3) | ||
design.assign_dna(s_l, 'AGTT' * 3) | ||
|
||
return design | ||
|
||
|
||
if __name__ == '__main__': | ||
d = create_design() | ||
d.write_idt_bulk_input_file(directory='idt') |
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
Oops, something went wrong.