UC-Davis-molecular-computing / scadnano-python-package

Python scripting library for generating designs readable by scadnano.
https://scadnano.org
MIT License
13 stars 7 forks source link

Importing deletions on 5'/3' staple end from Cadnano #260

Open dave-doty opened 1 year ago

dave-doty commented 1 year ago

See https://github.com/UC-Davis-molecular-computing/scadnano/issues/825

dave-doty commented 1 year ago

Unlike the web interface, there's no sense in a "warning dialog" in the Python interface.

But we should do the following: if any deletion cannot be imported, raise an exception.

Also, add an optional argument (default value is 1 below, make this a Python enum) to the cadnano import method that overrides this behavior. Give 3 options:

  1. Raise exception (default option)
  2. Silently ignore dropped deletions
  3. Move deletion to "nearby" offset on both strands if possible.