Skip to main content

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

2014-04-18

Bugfixes and improvements in documentation.

0.5.0

2013-12-16

Changes to how the amplify and assembly modules work the Amplicon and Assembly classes are now subclasses of Dseqrecord.

0.2.2

2013-11-05

bugfix: changed the handling of compound features to fit with the new version of BioPython (1.62) which is now a requirement.

0.2.1

2013-08-18

0.1.8

2013-06-02

bugfix: changed the SeqFeatures added to PCR products in the amplify module to a dict of list of strings instead of a dict of strings.

0.1.7

2013-05-29

Changed the code in amplify.Amplicon to handle features spanning the origin of circular sequences.

0.1.6

2013-04-22

Changed the behaviour of the find method of the Dseq object to find substrings that span the origin. Slicing for circular Dseq objects now works slightly different.

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.

run_tests.py – run tests by “python run_tests.py”<enter>

pydna/ – The actual code.

docs/ – Documentation.

scripts/ – Miscellaneous and perhaps useful scripts and examples.

tests/ – Testing code.

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.6.0.zip (2.4 MB view details)

Uploaded Source

pydna-0.6.0.tar.gz (2.3 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.6.0.win-amd64.exe (333.7 kB view details)

Uploaded Source

pydna-0.6.0.win32.exe (306.0 kB view details)

Uploaded Source

pydna-0.6.0-py2.7.egg (436.6 kB view details)

Uploaded Egg

pydna-0.6.0-py2-none-any.whl (203.1 kB view details)

Uploaded Python 2

File details

Details for the file pydna-0.6.0.zip.

File metadata

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

File hashes

Hashes for pydna-0.6.0.zip
Algorithm Hash digest
SHA256 43bbfee598ffc6d63919fa8928e397467498d97b5633334d88f04c54eed97876
MD5 e9b709d4786b16f4828abdf37f88c77f
BLAKE2b-256 dd2f89388b8598f46d7dd9e7abdcda6cc0869682fc66a0b14a076085357a3e77

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pydna-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a345c511d86e9430f45f3bc9a55c0f7e89f923b006f980d53d0c8a4d4c2bb962
MD5 b103b91a0c009578b4ecf1828692a3e0
BLAKE2b-256 e42a6f9a016576eb75997af155a561d4414ed03b8fdab65a8f09d50d7769475b

See more details on using hashes here.

File details

Details for the file pydna-0.6.0.win-amd64.exe.

File metadata

  • Download URL: pydna-0.6.0.win-amd64.exe
  • Upload date:
  • Size: 333.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydna-0.6.0.win-amd64.exe
Algorithm Hash digest
SHA256 23b996c503b080e9c650552912c5bf139ed147a8032b4f572c490519ddbfdff5
MD5 7ff19d7ad3b0c5e7cb7c8c9c19561d7c
BLAKE2b-256 27139ebe0ef58ef308a4300ec28fa0a497b9a58e737652bc12731dabb654b589

See more details on using hashes here.

File details

Details for the file pydna-0.6.0.win32.exe.

File metadata

  • Download URL: pydna-0.6.0.win32.exe
  • Upload date:
  • Size: 306.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydna-0.6.0.win32.exe
Algorithm Hash digest
SHA256 339dacb6a105f0b1b03fcff81c10e30e7f642e727c9c246224865e9034b1fbbb
MD5 f68775bc8302d9b2c971dbdfa92026b6
BLAKE2b-256 cf25987cdfdd3ac435aac1eb88e4a0f748077fb0d4b4ad974df10160725ce68d

See more details on using hashes here.

File details

Details for the file pydna-0.6.0-py2.7.egg.

File metadata

  • Download URL: pydna-0.6.0-py2.7.egg
  • Upload date:
  • Size: 436.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydna-0.6.0-py2.7.egg
Algorithm Hash digest
SHA256 6672a2091aab9af40dac4ca50af8a810a32e59e4c3ea94d2de7e2608c63e491a
MD5 e11bc2afb1e31e5f5d9c05b270257931
BLAKE2b-256 819d2d7bbfec3ba3bb38431af273f87817542a8424f821833b90fac98347ba07

See more details on using hashes here.

File details

Details for the file pydna-0.6.0-py2-none-any.whl.

File metadata

File hashes

Hashes for pydna-0.6.0-py2-none-any.whl
Algorithm Hash digest
SHA256 329199eabeacd9895473dcae537a82bf60225f501e97e28434f2086e3a0acd82
MD5 bbc53ef8c01a78440bd1bff75798ab5e
BLAKE2b-256 754d7e0dcd376a3d686b9a42d439aac87c7f09ae978f43630ec0e5a7b8648566

See more details on using hashes here.

Release history Release notifications | RSS feed

5.5.16

2 files

5.5.15

2 files

5.5.14

2 files

5.5.13

2 files

5.5.12

2 files

5.5.11

2 files

5.5.10

2 files

5.5.9

2 files

5.5.8

2 files

5.5.7

2 files

5.5.6

2 files

5.5.5

2 files

5.5.4

2 files

5.5.3

2 files

5.5.2

2 files

5.5.1

2 files

5.5.0

2 files

5.4.0

2 files

5.3.0

2 files

5.2.0

2 files

5.0.1

2 files

5.0.0

2 files

4.0.7

1 file

4.0.6

1 file

4.0.5

1 file

4.0.4

1 file

4.0.2

1 file

4.0.1

1 file

4.0.0

1 file

3.1.3

1 file

3.1.2

1 file

3.1.1

1 file

3.1.0

1 file

3.0.2

1 file

3.0.1

1 file

3.0.0

1 file

2.0.3

4 files

2.0.2

4 files

2.0.1

3 files

2.0.0

1 file

1.2.0

3 files

1.1.5

4 files

1.1.4

4 files

1.1.3a3

1.1.1

3 files

1.1.0

2 files

1.0.2

3 files

1.0.1

3 files

1.0.0

3 files

0.9.9

3 files

0.9.8

3 files

0.9.4

3 files

0.9.3

3 files

0.9.2

3 files

0.9.1

3 files

0.9.0

3 files

0.8.4

3 files

0.8.3

3 files

0.8.1

3 files

0.8.0

2 files

0.7.2

4 files

0.6.5

6 files

0.6.4

6 files

0.6.3

6 files

0.6.2

6 files

0.6.1

6 files

This release

0.6.0 This release

6 files

0.2.1

4 files

0.2.0

2 files

0.1.7

3 files

0.1.6

3 files

0.1.5

4 files

0.1.4

4 files

0.1.3

4 files

0.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page