Contains classes and code for representing double stranded DNA and functions for simulating homologous recombination between DNA molecules.
Project description
Pydna provide classes and functions for molecular biology using python. Notably, PCR, cut and paste cloning and homologous recombination between linear DNA fragments are supported. Most functionality is implemented as methods for the double stranded DNA sequence record classes Dseq and Dseqrecord, which are subclasses of the Biopython. Seq and SeqRecord classes.
Pydna might be useful to automate the simulation of sub cloning experiments using python. This could be helpful to generate examples for teaching purposes. Read the documentation or the cookbook with example files for further information.
Pydna was designed to semantically imitate how sub cloning experiments are typically documented in Scientific literature. Pydna code describing a sub cloning is reasonably compact and meant to be easily readable.
One use case for Pydna is to create a sort of executable documentation describing a subcloning experiment. The Pydna code unambiguously describe a sub cloning experiment, and can be executed to yield the sequence of the of the resulting DNA molecule.
Please post a message in the google group “pydna” at https://groups.google.com/forum/?fromgroups#!forum/pydna if you have problems, questions or comments.
Feedback is very welcome!
Typical usage at the command line could look like this:
>>> import pydna >>> seq = pydna.Dseq("GGATCCAAA","TTTGGATCC",ovhg=0) >>> seq Dseq(-9) GGATCCAAA CCTAGGTTT >>> from Bio.Restriction import BamHI >>> a,b = seq.cut(BamHI) >>> a Dseq(-5) G CCTAG >>> b Dseq(-8) GATCCAAA GTTT >>> a+b Dseq(-9) GGATCCAAA CCTAGGTTT >>> b+a Dseq(-13) GATCCAAAG GTTTCCTAG >>> b+a+b Dseq(-17) GATCCAAAGGATCCAAA GTTTCCTAGGTTT >>> b+a+a Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/pydna/dsdna.py", line 217, in __add__ raise TypeError("sticky ends not compatible!") TypeError: sticky ends not compatible! >>>
NEWS
version |
date |
comment |
---|---|---|
0.1.3 |
2013-04-09 |
pydna created from Python-dna. |
System Requirements
Python 2.x
Versions other than 2.7 has not been tried with this software. Version 2.7.3 was used to build the distribution.
Python 3.x
This code has not been tried with python 3.
Installation
Source
You need to install the dependencies listed above. If you are using Windows, you need to have a C compiler installed. The free MS visual studio 2008 express can be used.
Open the pydna source code directory (containing the setup.py file) in terminal and type:
sudo python setup.py install <enter>
If you need to do additional configuration, e.g. changing the base directory, please type python setup.py, or see the documentation for Setuptools.
Binary distribution
A Binary installer for 32 bit editions of MS Windows XP and 7 are provided.
The installer has been tested on succesfully on both.
The dependencies have to be installed from source or using binary installers for 32 bit windows.
This is a list of locations of binary installers:
Python <http://www.python.org/download/>
Biopython <http://biopython.org/wiki/Download>
networkx <http://www.lfd.uci.edu/~gohlke/pythonlibs/#networkx>
Source Code Repository
pydna is hosted by google code:
Distribution Structure
README.txt – This file.
NEWS.txt – Release notes and news
LICENSE.txt – What you can do with the code.
MANIFEST.in – Tells distutils what files to distribute
setup.py – Installation file.
setup_build.py – Building from Cython source (not needed for install)
distribute_setup.py – Bootstrap distribute installation for version 0.6.34 which will pretend to be setuptools 0.6c11
run_tests.py – run tests by “python run_tests.py”<enter>
pydna/ – The actual code.
docs/ – Documentation.
scripts/ – Miscellaneous perhaps useful scripts
tests/ – Testing code
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 Distributions
Built Distributions
File details
Details for the file pydna-0.1.3.zip
.
File metadata
- Download URL: pydna-0.1.3.zip
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b8584bc8b64d03e68e57064a40d7af0502a874b579e4087b898c0e29ceb84d2 |
|
MD5 | 956e1fafd915d984d1835b5c89d725a3 |
|
BLAKE2b-256 | 35ccb22b0d0ae8464da4e3bb5c6589d18c9f5ad1d46ca316cf12647317bbd4ea |
Provenance
File details
Details for the file pydna-0.1.3.tar.gz
.
File metadata
- Download URL: pydna-0.1.3.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4cdae070cd55eae8c85b2ca621e7d184cd881e2e1c3244c70b554e2e1caa34f |
|
MD5 | c2e73461fe682a387243a2661405124e |
|
BLAKE2b-256 | 807bd22bc34afb32d4db1f3825c690bfd0313ab3ff8f435553acecb4daceda40 |
Provenance
File details
Details for the file pydna-0.1.3.win-amd64-py2.7.exe
.
File metadata
- Download URL: pydna-0.1.3.win-amd64-py2.7.exe
- Upload date:
- Size: 311.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fae97106adcc068a05b37fa36ec162d1c7644cafa26f7ccd738521434e6fac5 |
|
MD5 | e1c853311ef5be959b5284e7213bc793 |
|
BLAKE2b-256 | 20df0fb80fdf8d6b92a889a98d9e669dac11cb1c34a8c928f50edf4b7096be9d |
Provenance
File details
Details for the file pydna-0.1.3.win32-py2.7.exe
.
File metadata
- Download URL: pydna-0.1.3.win32-py2.7.exe
- Upload date:
- Size: 281.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abdcf8cda284694bc46db24955f622ff1fd0ccd8aaa8b97b7102fe5ba4d9efb4 |
|
MD5 | f0ce56a1bfcefac297bd473091121736 |
|
BLAKE2b-256 | 4eae0e04f4483ac9f87c03ad50fb6a3fcfd1a96b691e5b9c5e2b17341a3ea0b1 |