Skip to main content

Python scripting library for generating designs readable by scadnano.

Project description

scadnano-python-package

Python package Documentation Status

The scadnano Python module is a library for describing synthetic DNA nanostructures (e.g., DNA origami).

If you find scadnano useful in a scientific project, please cite its associated paper:

scadnano: A browser-based, easily scriptable tool for designing DNA nanostructures.
David Doty, Benjamin L Lee, and Tristan Stérin.
Technical Report 2005.11841, arXiv, 2020.
[ arXiv paper | BibTeX ]

Overview

This module is used to write Python scripts outputting .dna files readable by scadnano, a web application useful for displaying and manually editing these structures. The purpose of this module is to help automate some of the task of creating DNA designs, as well as making large-scale changes to them that are easier to describe programmatically than to do by hand in scadnano.

Reporting issues

Please report issues in the web interface at the scadnano web interface GitHub repository, and report issues in the Python scripting library at the scadnano Python package GitHub repository.

Installation

The scadnano Python package requires Python version 3.7 or later. If you do not have that version (or later) of Python installed, follow this link to install it.

Once Python is installed, there are two ways you can install the scadnano Python package:

  1. pip

    Use pip to install the package by executing the following at the command line:

    pip install scadnano
    

    If your Python installation does not already have pip installed, you may have to install it. Executing this Python script should work; see also https://docs.python.org/3/installing/index.html or https://www.liquidweb.com/kb/install-pip-windows/.

  2. download

    As a simple alternative, you can download and place the following files (located in the scadnano/ subfolder) in your PYTHONPATH (e.g., in the same directory as the scripts you are running):

    Unfortunately, the scadnano package depends on the Python package xlwt, so xlwt must be installed. To install, type pip install xlwt at the command line. If this does not work, then you can comment out the line import xlwt in scadnano.py, but then you will not be able to call the method DNADesign.write_idt_plate_excel_file() to export an Excel file with DNA sequences.

Documentation

Online documentation of the package API is located here: https://scadnano-python-package.readthedocs.io

Tutorial

A tutorial shows how to create a "standard" 24-helix DNA origami rectangle using the scripting library.

Examples

Several example scripts are located in the examples/ subfolder. Their output is contained in the examples/output_designs/ subfolder.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scadnano-0.8.1.tar.gz (56.5 kB view details)

Uploaded Source

File details

Details for the file scadnano-0.8.1.tar.gz.

File metadata

  • Download URL: scadnano-0.8.1.tar.gz
  • Upload date:
  • Size: 56.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for scadnano-0.8.1.tar.gz
Algorithm Hash digest
SHA256 97249a6c2f6ff0b97b0a3301193af461316cd0b9543cbd7e4cc3dc740b193338
MD5 6d705b8a7ea25f9b5646348c8f0b7c11
BLAKE2b-256 fe4b16cf26934afa024388a575c618b0556c4cc66c860a907fd0863c54219304

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page