Skip to main content

DNA fragment clustering and grouping tool

Project description

The Coli Toolkit (CTK): An extension of the modular Yeast Toolkit for use in E. coli

This python package contains the code responsible for clustering small DNA fragments in preparation for de novo synthesis. The project is also described in the paper: The Coli Toolkit (CTK): An extension of the modular Yeast Toolkit to the E. coli chassis by Jacob Mejlsted1,2,3, Erik Kubaczka1,3, Sebastian Wirth1,3, and Heinz Koeppl1,3*.

Install

pip install DNA-fragment-clustering

Python Usage

from DNA_fragment_clustering import DNA_clustering DNA_clustering("input.csv", aggressive = False)

Clustering of de novo DNA fragments

The Python executable DNA_fragments.py performs clustering and grouping of de novo DNA fragments meant for synthesis. From the methods:

The clustering software uses the Levenshtein similarity matrix to compute the differences between the various fragments that the user wants to synthesize. Using affinity propagation, the software defines clusters with high sequence similarity. From this, groups are made of up to three sequences from distinct clusters to obtain low sequence similarity in the final DNA sequence sent for synthesis. If the aggressive clustering option is selected, groups only containing one sequence are concatenated together to minimize the amount of DNA needed to be synthetized. Following the grouping, the DNA sequences are concatenated and the restriction sites for BsmBI are exchanged to BbsI and BspMI for the second and third occurrences, respectively. The final sequence is then outputted as a .csv file to the same folder as the input file was chosen from.

Input format

The input .csv files were based on the output format of Benchling.
The format uses three columns: Name, Author, Sequence These are the name of the DNA fragment, the author/owner of the DNA sequences, and sequence in question, respectively.

Citation

If you use this code or the data provided here, please cite the corresponding paper.

License

The code and the data is available under an MIT License. Please cite the corresponding paper if you use our code and/or data.

Funding & Acknowledgments

The authors acknowledge Anika Kofod Petersen for her work on the prototype of the de novo synthesis clustering pipeline. The work was made possible with the support of a scholarship from the German Academic Exchange Service (DAAD), project number 91877921 to J.M. E.K. was supported by ERC-PoC grant PLATE (101082333). Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the funding agencies. We acknowledge the use of Python and the aforementioned Python packages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dna_fragment_clustering-0.1.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

dna_fragment_clustering-0.1.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file dna_fragment_clustering-0.1.2.tar.gz.

File metadata

  • Download URL: dna_fragment_clustering-0.1.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for dna_fragment_clustering-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e7cf8569faa55c90031a5c1026d79e439d332b2566f4a6a8383e0ce4dab41e5e
MD5 01cfc55603588de99e1cb4db8470d336
BLAKE2b-256 10152e15df669bc9a5decf500ca8a5129781769fae8a239ab2a6fbbc21b847c4

See more details on using hashes here.

File details

Details for the file dna_fragment_clustering-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dna_fragment_clustering-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 31bf06654145d0ff49ac4e55667c5db1607c0535382e0cbe7d66de7c10336f9f
MD5 a086c4e255dde9527e5f3d606273f161
BLAKE2b-256 3b7dc24d3e0c8dac8fa093a140071f145325c86b4a9d507a09cdb17fa11589ec

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