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
CLI Usage
DNA-fragment-clustering input.csv --aggressive
Python Usage
from DNA-fragment-clustering import DNA_clustering DNA_clustering("input.csv")
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.
Setup
Please make sure that you have a working Python installation. The requirements and instructions on their installation can be found in Requirements.
Input format
The input .csv files were based on the output format of Benchling. Examples are provided in the clustering_sample_data folder.
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.
Requirements
The software provided here is written in Python and makes use of libraries such as numpy, pandas and others.
Navigate with in your terminal or command line to project directory and run
pip install -r requirements.txt
to install all the dependencies required for the code.
Be aware, that depending on your OS, you might have to use pip3 instead of pip.
In particular, this installs the following packages:
numpy
pandas
Levenshtein
sklearn.cluster
pathlib
tkinter
matplotlib
FlowCal
scipy
shutil
warnings
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dna_fragment_clustering-0.1.1.tar.gz.
File metadata
- Download URL: dna_fragment_clustering-0.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99ec398921bcbc8a9e7b18cb8c17f878bd4c1fdad7f1fadbd000ff2c3672de1e
|
|
| MD5 |
188c8629ac7333395c15bdee56435719
|
|
| BLAKE2b-256 |
7eb3956076d8a780964e5fa5d17fbaf644f0a2d78d271ae8f89e822feb826f7c
|
File details
Details for the file dna_fragment_clustering-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dna_fragment_clustering-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba18f5e0b199376a0bcafa349d514ba891780d1a801c83e8d654ba40ba14578e
|
|
| MD5 |
0888252a5e375032ee0eb5fda1293324
|
|
| BLAKE2b-256 |
e19324dbd70c29f09decf34505befe13e3efc99923c93c3e4ec008c09b64717e
|