Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

reoptimize

Python tool to optimize reaction conditions for restriction enzyme digests of DNA

This tools lets you search for a suitable buffer for a simultaneous digest of DNA using an arbitrary number of enzymes. It calculates the amount of enzymes needed (in units) and takes into account the duration of the restriction digest (based on the NEB data on enzyme survival and time saver qualification). It’s a very crude first attempt, but it’s going to improve slowly according to how much time we have. Planned are also GUI interfaces for Linux, macOS and Windows.

Inputs needed:

  1. Enzyme name(s)

  2. How many cuts does the target DNA have for each selected enzyme? (optional, default 1)

  3. How long is the target DNA (in base pairs)? (optional, default 5000)

  4. How long are you going to incubate the reaction (in hours)? (optional, default 1 hour)

  5. How much DNA do you want to cut (in µg)? (optional, default 1 µg)

Output:

  1. Possible buffers in the order of suitability (or the result “simultaneous digest not recommended”)

  2. Amount of each enzyme needed for all possible buffers

Requirements:

biopython

Since even the latest Biopython distribution doesn’t contain all enzymes sold by NEB, you need to manually update the Restriction_Dictionary.py manually with the file Restriction_Dictionary.py by copying it into the Bio/Restriction folder of the folder, where your python3 stores the python packages. On Ubuntu 16.04, this would be /usr/lib/python3/dist-packages/Bio/Restriction.

Files:

reoptimize.py The script that does the calculations. Usage examples:

This is a double digest with AflIII and HindIII, where the target DNA has two AflIII sites and one HindIII site:

reoptimize -e ‘AflIII 2’ ‘HindIII 1’

This gives all necessary parameters via the command line:

reoptimize -e ‘EcoRI 2’ ‘HindIII 3’ -l 3000 -t 4 -m 2

-l (length of target dna, in base pairs) -t (incubation time, in hours) -m (amount of DNA, in µg)

make_sqlite_database.py This script fetches all the data for NEB enzymes from the NEB web pages and assembles the database that is needed for the script to run. Running it results in the database file “REsqlite3.db”

assay_DNAs.fasta This files contains the full DNA sequences of all assay DNAs used by NEB. We include it here to avoid querying the “Frequency of restriction sites” table (which is anyway incomplete).

Release files for reoptimize 0.1.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reoptimize 0.1.0a2
File Size Uploaded
reoptimize-0.1.0a2.tar.gz 248.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reoptimize 0.1.0a2
File Interpreter ABI Platform
reoptimize-0.1.0a2-py3-none-any.whl Python 3 none any Details

Total release size: 511.7 kB

Release files / reoptimize-0.1.0a2.tar.gz

Download URL reoptimize-0.1.0a2.tar.gz
Size 248.8 kB
Tags Source
SHA-256 checksum
How to use checksums
26ca181bf5aa91d394c916f416cab591dcd28d373450c0db634c7ae6963ae9f7
BLAKE2b-256 checksum
How to use checksums
324cda06feaf1720e99bf5cdef563660d0548d3027aacd78d5d8903b3ce87221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / reoptimize-0.1.0a2-py3-none-any.whl

Download URL reoptimize-0.1.0a2-py3-none-any.whl
Size 262.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ec44bbf4d3d49d6b2272884f9208e5cb4958a5499901c1c2916c2a5f32a8306
BLAKE2b-256 checksum
How to use checksums
3432a861166fc74a942c6601305df095a776952742db738d491c514aeb6663a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0a2 This release

2 release files

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