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 PyQt6:
pip install pyqt6
- Clone repo:
git clone git@github.com:douglaslab/cadnano2.git
- Change directory:
cd cadnano2
- Make desired code edits
- Build and install:
python setup.py install
- 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 PyQt6:
pip install pyqt6
- Clone repo:
git clone git@github.com:douglaslab/cadnano2.git
- Change directory:
cd cadnano2
- Make desired code edits
- Build and install:
python setup.py install
- Test:
cadnano2
- Repeat previous 3 steps as needed
Build new dist and upload to PyPi
pip install build twine
<- install build and twinecd /path/to/cadnano2/
python3 -m build
creates dist/cadnano2-x.y.z.tar.gz and cadnano2-x.y.z-py3-none-any.whlpython3 -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
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
Built Distribution
File details
Details for the file cadnano2-2.4.11.tar.gz
.
File metadata
- Download URL: cadnano2-2.4.11.tar.gz
- Upload date:
- Size: 583.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4389f9cf9fc1797cf1782286395aebf5a48ee50138aa2fce70a3244efb4282c0 |
|
MD5 | 61dbbb44517c170cc4b3cf3a99dbb0ff |
|
BLAKE2b-256 | bfe69a2711f8f21ec7da7a38420e85424ee82596444737658e8cc82ebe11966f |
File details
Details for the file cadnano2-2.4.11-py3-none-any.whl
.
File metadata
- Download URL: cadnano2-2.4.11-py3-none-any.whl
- Upload date:
- Size: 645.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1912dfd06ef0bfcfa11379e5c53c16f3f497ce10c24bec2c8842a758fc746067 |
|
MD5 | 4c39d45a3b5f28a21473b59850d01d2e |
|
BLAKE2b-256 | 61a1199fd4a1902381117de1356f4fa112f0c93ff475eba3badbc3d9f6c19abe |