Skip to main content

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 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.

An on-line shell running Python with pydna is avaiable for experimentation.

Please post a message in the google group for 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.5

2013-04-18

Changed the setup.py script to permit installation of the source installer without access to a c compiler.

0.1.4

2013-04-10

Cleaned up some docstrings Renamed Drecord -> Dseqrecord to be more consistent with Dseq and Biopython Seq/SeqRecord.

Changed name of keyword argument for read and parse. ds=True returns Dseqrecord(s) while ds=False returns SeqRecords.

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:

Source Code Repository

pydna is hosted by google code:

http://code.google.com/p/pydna/

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

pydna-0.1.5.zip (2.1 MB view details)

Uploaded Source

pydna-0.1.5.tar.gz (2.0 MB view details)

Uploaded Source

Built Distributions

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

pydna-0.1.5.win-amd64-py2.7.exe (311.9 kB view details)

Uploaded Source

pydna-0.1.5.win32-py2.7.exe (282.4 kB view details)

Uploaded Source

File details

Details for the file pydna-0.1.5.zip.

File metadata

  • Download URL: pydna-0.1.5.zip
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydna-0.1.5.zip
Algorithm Hash digest
SHA256 601dd13251a321670b83cfd6699149ae1fb43f1cc088902ed4f3eb3e24412969
MD5 0dd7f8ddf82669e0115a06d15ee4dc88
BLAKE2b-256 00d870d6479bad21eea5b3dcb1dd8ec70eae1ee99be412695780b8c47c7a106f

See more details on using hashes here.

File details

Details for the file pydna-0.1.5.tar.gz.

File metadata

  • Download URL: pydna-0.1.5.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydna-0.1.5.tar.gz
Algorithm Hash digest
SHA256 86b884921a11810d36d1a7cb8e9d555f003907955bb17fb49837e21bcd59370c
MD5 b6cc1bff6dbc2009624fa0f1d2adf103
BLAKE2b-256 88c9cae8cb9f6bd551289b6ffdf26ade5ed6ce85e5c5aa25942bac0eb08031a5

See more details on using hashes here.

File details

Details for the file pydna-0.1.5.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for pydna-0.1.5.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 19ce17735b273292a6efbe8bfb5cf4751662b56ecc7d801c9399fb344cdf83bc
MD5 ce84d9722c2b9883474b336f13b31ffc
BLAKE2b-256 fd02c46e631c43eaa872c6b2d2125f527f42774a7bf107b05c891182a974d8c8

See more details on using hashes here.

File details

Details for the file pydna-0.1.5.win32-py2.7.exe.

File metadata

  • Download URL: pydna-0.1.5.win32-py2.7.exe
  • Upload date:
  • Size: 282.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydna-0.1.5.win32-py2.7.exe
Algorithm Hash digest
SHA256 6474a6db390877fa0cd4ec36bf6f341cbbf345889e3927e1f888550fff4e4c7e
MD5 886863e4b6744fd5c817dc38419498d2
BLAKE2b-256 ab7019f36ad4af0c7f0b7ab7ffcbf564d813b3f15c0c5667b0c8f52e19e25035

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