-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
circular Strands #14
Comments
…rands closes #14; add support for circular Strands
[BREAKING CHANGE] Since circular strands make it easier to use the crossovers = [
Crossover(helix=0, helix2=1, offset=16, forward=True, half=True),
Crossover(helix=0, helix2=1, offset=24, forward=False, half=True),
Crossover(helix=2, helix2=3, offset=32, forward=True),
Crossover(helix=2, helix2=3, offset=40, forward=False),
]
design.add_crossovers(crossovers) with this instead: design.add_half_crossover(helix=0, helix2=1, offset=16, forward=True)
design.add_half_crossover(helix=0, helix2=1, offset=24, forward=False)
design.add_full_crossover(helix=2, helix2=3, offset=32, forward=True)
design.add_full_crossover(helix=2, helix2=3, offset=40, forward=False) |
Add a Boolean field
Strand.circular
and draw a crossover from last substrand to first. Any equivalent cyclic permutation of the substrands should display in the same way.Even if one doesn't wish the final design to have circular strands, this will help to avoid the problem that sometimes an intermediate design temporarily creates a circular
Strand
, even though subsequent edits make it linear again. Currently such designs are simply not allowed.See UC-Davis-molecular-computing/scadnano#5.
The text was updated successfully, but these errors were encountered: