Optimize DNA sequences under constraints.
Project description
DNA Chisel (complete documentation here) is a Python library for optimizing DNA sequences with respect to a set of constraints and optimization objectives. It comes with over 15 classes of sequence specifications which can be composed to, for instance, codon-optimize genes, meet the constraints of a commercial DNA provider, avoid homologies between sequences, tune GC content, or all of this at once!
DNA Chisel also allows users to define their own specifications in Python, making the library suitable for a large range of automated sequence design applications, and complex custom design projects. It can be used as a Python library, a command-line interface, or a web application.
Example of use
from dnachisel import *
# DEFINE THE OPTIMIZATION PROBLEM
some_sequence = random_dna_sequence(10000)
problem = DnaOptimizationProblem(
sequence=some_sequence,
constraints=[
AvoidPattern("BsaI_site"),
EnforceGCContent(mini=0.3, maxi=0.7, window=50),
EnforceTranslation(location=(500, 1400))
],
objectives=[CodonOptimize(species='e_coli', location=(500, 1400))]
)
# SOLVE THE CONSTRAINTS, OPTIMIZE WITH RESPECT TO THE OBJECTIVE
problem.resolve_constraints()
problem.optimize()
# PRINT SUMMARIES TO CHECK THAT CONSTRAINTS PASS
print(problem.constraints_text_summary())
print(problem.objectives_text_summary())
Alternatively, DNA Chisel lets you define problems by annotating a Genbank file. You can also define a problem by annotating directly a Genbank as follows:
See this page for an overview of available specifications.
Infos
PIP installation:
pip install dnachisel[reports]
(you can omit the [reports] suffix if you intend to use dnachisel only for sequence optimization, without generating figures or PDF reports)
Web documentation: https://edinburgh-genome-foundry.github.io/DnaChisel/
Github Page: https://github.com/Edinburgh-Genome-Foundry/DnaChisel
Live demo: http://cuba.genomefoundry.org/sculpt_a_sequence
License: MIT
Copyright 2017 Edinburgh Genome Foundry, University of Edinburgh
More biology software
DNA Chisel is part of the EGF Codons synthetic biology software suite for DNA design, manufacturing and validation.
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 dnachisel-3.2.16.tar.gz
.
File metadata
- Download URL: dnachisel-3.2.16.tar.gz
- Upload date:
- Size: 116.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
de872bf5c92b110e0b3c78e09e7bacafa711a3a61ee707449574b5c096974497
|
|
MD5 |
783ee55d0868154ad334007811a549d7
|
|
BLAKE2b-256 |
ba843353ca63bdd00c340491b1b04bf5ffbb0fe522bf9989ff91b78fa4b1f648
|
Provenance
The following attestation bundles were made for dnachisel-3.2.16.tar.gz
:
Publisher:
publish.yml
on Edinburgh-Genome-Foundry/DnaChisel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
dnachisel-3.2.16.tar.gz
-
Subject digest:
de872bf5c92b110e0b3c78e09e7bacafa711a3a61ee707449574b5c096974497
- Sigstore transparency entry: 209825548
- Sigstore integration time:
-
Permalink:
Edinburgh-Genome-Foundry/DnaChisel@68c09304341c3656f3dfe63eda37757d6a7b3917
-
Branch / Tag:
refs/tags/v3.2.16
- Owner: https://github.com/Edinburgh-Genome-Foundry
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@68c09304341c3656f3dfe63eda37757d6a7b3917
-
Trigger Event:
release
-
Statement type:
File details
Details for the file dnachisel-3.2.16-py3-none-any.whl
.
File metadata
- Download URL: dnachisel-3.2.16-py3-none-any.whl
- Upload date:
- Size: 147.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ec557276867b864a0cedb3b376f59d677c7b25699bbef884acad09131321e76f
|
|
MD5 |
c4de54997b85e0092faf62ef330ee290
|
|
BLAKE2b-256 |
20c01489e78e116c415dca9d6bccd5cc33abbd81810e0cbd8e02eb11e9099f60
|
Provenance
The following attestation bundles were made for dnachisel-3.2.16-py3-none-any.whl
:
Publisher:
publish.yml
on Edinburgh-Genome-Foundry/DnaChisel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
dnachisel-3.2.16-py3-none-any.whl
-
Subject digest:
ec557276867b864a0cedb3b376f59d677c7b25699bbef884acad09131321e76f
- Sigstore transparency entry: 209825552
- Sigstore integration time:
-
Permalink:
Edinburgh-Genome-Foundry/DnaChisel@68c09304341c3656f3dfe63eda37757d6a7b3917
-
Branch / Tag:
refs/tags/v3.2.16
- Owner: https://github.com/Edinburgh-Genome-Foundry
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@68c09304341c3656f3dfe63eda37757d6a7b3917
-
Trigger Event:
release
-
Statement type: