Skip to main content

Cadnano2 for PyQt6

Project description

Cadnano2 DNA Origami Design Software

Overview

Cadnano is computer-aided design software for DNA origami nanostructures. The original citation is here.

Installation

macOS

  • Install homebrew
  • Install python3: brew install python3
  • Create a virtualenv: python3 -m venv ~/virtualenvs/cn24x
  • Activate virtualenv: source ~/virtualenvs/cn24x/bin/activate
  • Install via pip: pip3 install cadnano2

Linux

  • Create a virtual env: python3 -m venv ~/virtualenvs/cn24x
  • Activate the venv: source ~/virtualenvs/cn24x/bin/activate
  • Install from PyPI: pip3 install cadnano2

Windows (tested for Python 3.10.4)

  • Download and install latest python3
  • Use "Manage app execution aliases" to disable launching "App Installer" via any python executables.
  • Add python app folder to your system path, e.g. C:\Users\shawn\AppData\Local\Programs\Python\Python310\
  • Add scripts folder to your system path, e.g. C:\Users\shawn\AppData\Local\Programs\Python\Python310\Scripts\
  • Open command prompt (cmd.exe) and confirm you can run "python" and "pip".
  • Install Cadnano via pip: pip install cadnano2

Running

macOS or Linux

  • Open the Terminal
  • (macOS or Linux) Activate virtual env:
    • source ~/virtualenvs/cn24x/bin/activate
  • Run the app: cadnano2

Windows

  • Open the Command Prompt
  • Run the app: cadnano2

macOS alias

  • Add to ~/.zprofile: alias cn2="source ~/virtualenvs/cn24x/bin/activate && cadnano2"
  • Open new Terminal and run: cn2

Upgrading

  • Open the Terminal
  • Activate virtual env: source ~/virtualenvs/cn24x/bin/activate
  • Upgrade via pip: pip install --upgrade cadnano2

Development

Setup a dev environment (Mac or Linux)

  • Create a virtualenv: python3 -m venv ~/virtualenvs/cn24dev
  • Activate virtualenv: source ~/virtualenvs/cn24dev/bin/activate
  • Install build dependencies: pip install setuptools wheel pyqt6
  • Clone repo: git clone git@github.com:douglaslab/cadnano2.git
  • Change directory: cd cadnano2
  • Make desired code edits
  • Build and install: pip install -e .
  • Test: cadnano2
  • Repeat previous 3 steps as needed

Setup a dev environment (Windows)

  • Install venv: pip install virtualenv
  • Create a virtualenv: python -m venv virtualenvs\cn24dev (e.g. in %homepath%)
  • Activate virtualenv: virtualenvs\cn24dev\Scripts\activate
  • Install build dependencies: pip install setuptools wheel pyqt6
  • Clone repo: git clone git@github.com:douglaslab/cadnano2.git
  • Change directory: cd cadnano2
  • Make desired code edits
  • Build and install: pip install -e .
  • Test: cadnano2
  • Repeat previous 3 steps as needed

Build new dist and upload to PyPi

  • pip install build twine <- install build and twine
  • cd /path/to/cadnano2/
  • python3 -m build creates dist/cadnano2-x.y.z.tar.gz and cadnano2-x.y.z-py3-none-any.whl
  • python3 -m twine upload dist/cadnano2-x.y.z*

Version notes

This version of Cadnano2 is maintained by the Douglas Lab. It is derived from cadnano/cadnano2.

If you wish to use the Cadnano Python API for scripting, see cadnano2.5.

License

This version of Cadnano2 is available under the MIT License. GUI code that uses PyQt6 is GPLv3 as required by Riverbank Computing.

Project details


Download files

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

Source Distribution

cadnano2-2.4.13.tar.gz (583.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cadnano2-2.4.13-py3-none-any.whl (646.0 kB view details)

Uploaded Python 3

File details

Details for the file cadnano2-2.4.13.tar.gz.

File metadata

  • Download URL: cadnano2-2.4.13.tar.gz
  • Upload date:
  • Size: 583.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for cadnano2-2.4.13.tar.gz
Algorithm Hash digest
SHA256 ca4ac0aad8a2ba7d5d0ac9bd77e4c536495d8af035082308b2cdce01fb7838c0
MD5 ae37741463b2641f1de59005a016e59b
BLAKE2b-256 e47d944ba286abf1ed8487da3d3c323a875ee3d2000624184600fa5265cdb559

See more details on using hashes here.

File details

Details for the file cadnano2-2.4.13-py3-none-any.whl.

File metadata

  • Download URL: cadnano2-2.4.13-py3-none-any.whl
  • Upload date:
  • Size: 646.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for cadnano2-2.4.13-py3-none-any.whl
Algorithm Hash digest
SHA256 d877282c8a782b079070248b2743016de2ecae523939be857df20d3672b0e039
MD5 47ebb34bacda568518ccc1ad4c3f9867
BLAKE2b-256 0f63761e3ccde1f5185202bc077174ec45a4869a642c3680c9a0536498b6fa71

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