Skip to content

Commit

Permalink
Merge pull request #63 from UC-Davis-molecular-computing/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dave-doty authored May 30, 2020
2 parents 9d30c54 + 60368ee commit 10cf39d
Show file tree
Hide file tree
Showing 58 changed files with 3,605 additions and 98 deletions.
10 changes: 7 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
import os
import sys

sys.path.insert(0, os.path.abspath('../'))
import scadnano

sys.path.insert(0, os.path.abspath('../scadnano'))
# print(sys.path)

# Type "make html" at the command line to generate the documentation.
Expand All @@ -29,8 +31,10 @@
author = 'David Doty'

# The full version, including alpha/beta/rc tags
version = '0.0.1'
release = '0.0.1'
# version = '0.7.0'
# release = '0.7.0'
version = scadnano.current_version
release = scadnano.current_version

# -- General configuration ---------------------------------------------------

Expand Down
10 changes: 5 additions & 5 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ scadnano documentation

scadnano
=====================
.. automodule:: scadnano.scadnano
.. automodule:: scadnano
:members:

origami_rectangle
=====================
.. automodule:: scadnano.origami_rectangle
.. automodule:: origami_rectangle
:members:

Interoperability - cadnano v2
=============================

Scadnano provides function to convert design to and from cadnano v2:

* :any:`DNADesign.from_cadnano_v2` will create a scadnano DNADesign from a ``cadnanov2`` json file.
* :any:`DNADesign.export_cadnano_v2` will produce a ``cadnanov2`` json file from a scadnano design.
* :py:meth:`DNADesign.from_cadnano_v2` will create a scadnano DNADesign from a ``cadnanov2`` json file.
* :py:meth:`DNADesign.export_cadnano_v2` will produce a ``cadnanov2`` json file from a scadnano design.

**Important**

All ``cadnanov2`` designs can be imported to scadnano. However **not all scadnano designs can be imported
to cadnanov2**, to be importable to ``cadnanov2`` a scadnano design need to comply with the following points:

* The design cannot feature any :any:`Loopout` as it is not a concept that exists in ``cadnanov2``.
* The design cannot feature any :py:class:`Loopout` as it is not a concept that exists in ``cadnanov2``.
* Following ``cadnanov2`` conventions, helices with **even** number must have their scaffold going **forward** and helices with **odd** number **backward**.

Also note that maximum helices offsets can be altered in a ``scadnano`` to ``cadnanov2`` conversion as ``cadnanov2`` needs max offsets to be a multiple of 21 in the hex grid and 32 in the rectangular grid.
Expand Down
Loading

0 comments on commit 10cf39d

Please sign in to comment.