DNA Chisel
==========
DNA Chisel (complete documentation `here <https://edinburgh-genome-foundry.github.io/DnaChisel/>`_)
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 <https://cuba.genomefoundry.org/sculpt_a_sequence>`_.
Example of use
---------------
.. code:: python
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:
.. image:: https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/DnaChisel/master/docs/_static/images/example_sequence.png
:alt: [logo]
:align: center
:width: 450px
See `this page <https://edinburgh-genome-foundry.github.io/DnaChisel/ref/builtin_specifications.html>`_
for an overview of available specifications.
Infos
-----
**PIP installation:**
.. code:: bash
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 Edinburgh Genome Foundry
More biology software
-----------------------
.. image:: https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/Edinburgh-Genome-Foundry.github.io/master/static/imgs/logos/egf-codon-horizontal.png
:target: https://edinburgh-genome-foundry.github.io/
DNA Chisel is part of the `EGF Codons <https://edinburgh-genome-foundry.github.io/>`_ synthetic biology software suite for DNA design, manufacturing and validation.
Raw data
{
"_id": null,
"home_page": "https://github.com/Edinburgh-Genome-Foundry/DnaChisel",
"name": "dnachisel",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "DNA gene design codon optimization constraints synthetic biology",
"author": "Zulko",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/bc/0e/15e8406067f03d098d3d6ebec4ee0e8011e1cef12f0f83ee3f5e6b94a10f/dnachisel-3.2.11.tar.gz",
"platform": null,
"description": "DNA Chisel\n==========\n\nDNA Chisel (complete documentation `here <https://edinburgh-genome-foundry.github.io/DnaChisel/>`_)\nis a Python library for optimizing DNA sequences with respect to a set of\nconstraints and optimization objectives. It comes with over 15 classes of\nsequence specifications which can be composed to, for instance, codon-optimize\ngenes, meet the constraints of a commercial DNA provider, avoid homologies\nbetween sequences, tune GC content, or all of this at once!\n\nDNA Chisel also allows users to define their own specifications in Python,\nmaking the library suitable for a large range of automated sequence design\napplications, and complex custom design projects. It can be used as a Python\nlibrary, a command-line interface, or a `web application <https://cuba.genomefoundry.org/sculpt_a_sequence>`_.\n\n\nExample of use\n---------------\n\n.. code:: python\n\n from dnachisel import *\n\n # DEFINE THE OPTIMIZATION PROBLEM\n\n some_sequence = random_dna_sequence(10000)\n problem = DnaOptimizationProblem(\n sequence=some_sequence,\n constraints=[\n AvoidPattern(\"BsaI_site\"),\n EnforceGCContent(mini=0.3, maxi=0.7, window=50),\n EnforceTranslation(location=(500, 1400))\n ],\n objectives=[CodonOptimize(species='e_coli', location=(500, 1400))]\n )\n\n # SOLVE THE CONSTRAINTS, OPTIMIZE WITH RESPECT TO THE OBJECTIVE\n\n problem.resolve_constraints()\n problem.optimize()\n\n # PRINT SUMMARIES TO CHECK THAT CONSTRAINTS PASS\n\n print(problem.constraints_text_summary())\n print(problem.objectives_text_summary())\n\nAlternatively, DNA Chisel lets you define problems by annotating a Genbank file.\nYou can also define a problem by annotating directly a Genbank as follows:\n\n.. image:: https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/DnaChisel/master/docs/_static/images/example_sequence.png\n :alt: [logo]\n :align: center\n :width: 450px\n\nSee `this page <https://edinburgh-genome-foundry.github.io/DnaChisel/ref/builtin_specifications.html>`_\nfor an overview of available specifications.\n\nInfos\n-----\n\n**PIP installation:**\n\n.. code:: bash\n\n pip install dnachisel[reports]\n\n(you can omit the ``[reports]`` suffix if you intend to use dnachisel only\nfor sequence optimization, without generating figures or PDF reports)\n\n**Web documentation:**\n\n`<https://edinburgh-genome-foundry.github.io/DnaChisel/>`_\n\n**Github Page**\n\n`<https://github.com/Edinburgh-Genome-Foundry/DnaChisel>`_\n\n**Live demo**\n\n`<http://cuba.genomefoundry.org/sculpt_a_sequence>`_\n\n**License:** MIT, Copyright Edinburgh Genome Foundry\n\nMore biology software\n-----------------------\n\n.. image:: https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/Edinburgh-Genome-Foundry.github.io/master/static/imgs/logos/egf-codon-horizontal.png\n :target: https://edinburgh-genome-foundry.github.io/\n\nDNA Chisel is part of the `EGF Codons <https://edinburgh-genome-foundry.github.io/>`_ synthetic biology software suite for DNA design, manufacturing and validation.\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Optimize DNA sequences under constraints.",
"version": "3.2.11",
"project_urls": {
"Homepage": "https://github.com/Edinburgh-Genome-Foundry/DnaChisel"
},
"split_keywords": [
"dna",
"gene",
"design",
"codon",
"optimization",
"constraints",
"synthetic",
"biology"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8cbf1de724d9325a3bc16ef71d34edd8fe325dac36ba575f3129c9185fe87944",
"md5": "33c3150f526cd496c5a08cb1aa928465",
"sha256": "2fb522cf043bc7208149f1b22faf4700f2edb812e4bc6bb0ba1087f79fc76368"
},
"downloads": -1,
"filename": "dnachisel-3.2.11-py3-none-any.whl",
"has_sig": false,
"md5_digest": "33c3150f526cd496c5a08cb1aa928465",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 146697,
"upload_time": "2023-06-06T15:39:02",
"upload_time_iso_8601": "2023-06-06T15:39:02.654776Z",
"url": "https://files.pythonhosted.org/packages/8c/bf/1de724d9325a3bc16ef71d34edd8fe325dac36ba575f3129c9185fe87944/dnachisel-3.2.11-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bc0e15e8406067f03d098d3d6ebec4ee0e8011e1cef12f0f83ee3f5e6b94a10f",
"md5": "c683424b33f3d840e1a5280f19767332",
"sha256": "8fc7a677959c113a8c70e4752d216b902be30b56c2a2892a1ae4ea6d046fde0f"
},
"downloads": -1,
"filename": "dnachisel-3.2.11.tar.gz",
"has_sig": false,
"md5_digest": "c683424b33f3d840e1a5280f19767332",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 1514089,
"upload_time": "2023-06-06T15:39:05",
"upload_time_iso_8601": "2023-06-06T15:39:05.444831Z",
"url": "https://files.pythonhosted.org/packages/bc/0e/15e8406067f03d098d3d6ebec4ee0e8011e1cef12f0f83ee3f5e6b94a10f/dnachisel-3.2.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-06 15:39:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Edinburgh-Genome-Foundry",
"github_project": "DnaChisel",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"lcname": "dnachisel"
}