A package to look at inserting DNA sequences into plasmids for cloning or PCR for SWBio DTP Data Science and Machine Learning Module
Project description
PlamidInsertChecker
Code for SWbioDTP Data Science and Machine Learning module
This is an installable python package that can be used to interrogate DNA sequences for restriction enzyme cutting sites. It can produce:
i. a table of cut sites with useful information on the number of cut sites, the cut site locations, the enzyme cut overhang, and the commercial suppliers
ii. a figure showing the cut locations on a plasmid or linear section of DNA
Installation
Create a virtual environment using your favourite tool, clone the repsotiory to obtain the data and install the package using pip
virtualenv env_plasmidin
source env_plasmidin/bin/activate
git clone git@github.com:bmm514/PlamidInsertChecker.git
pip install plasmidin
Basic useage
- Import required plasmidin Classes
from plasmidin.plasmidin import RSInserter
from plasmidin.plasmid_diagrams import PlasmidDrawer
- Input fasta file or bio python Seq() for plasmid and insert
plasmid_seq = 'path/to/plasmid_fasta.fa'
plasmid_linear = False
insert_seq = 'path/to/insert_fasta.fa'
insert_linear = True
remove_ambiguous_enzymes = True
- Run analysis on these to find restriction enzyme cut sites and show the enzymes of interest i.e. single cut enzymes
rsinserter = RSInserter(plasmid_seq, plasmid_linear, insert_seq, insert_linear, remove_ambiguous_enzymes)
rsinserter_XbaI_BamHI.shared_single_enzymes
- Select from the list appropriate restriction enzymes to cut
plasmid_cut_enzymes = ('EnzymeA', 'EnzymeB')
insert_cut_enzymes = ('EnzymeA', 'EnzymeB')
- Integrate insert sequence into plasmid sequence
rsinserter.integrate_seq(plasmid_cut_enzymes, insert_cut_enzymes)
- Analyse the output restriction sites and save a table of the restriction sites present
integrated_table = '/path/to/restriction_enzymes.csv'
rsinserter.integrated_rsfinder.save_enzyme_table(integrated_table, delimiter = ',')
- Create plasmid map for the integrated sequence
input_seq = rsinserter.integrated_rsfinder.input_seq
feature_info = rsinserter.integrated_rsfinder.feature_info
integrated_figure = '/path/to/integrated_restriction_map.pdf'
plasmid_drawer = PlasmidDrawer(input_seq, 'IntegratedSeq', feature_info)
plasmid_drawer.draw_gd_diagram(integrated_figure, 'circular', {'pagesize' : 'A4', 'circle_core' : 0.5, 'track_size' : 0.1})
Examples
See plasmidin_example.py for code to run and produce output from PlasmidInsertChecker:
python3 scripts/plasmidin_examples.py
This will use the example fasta files in data/
directory and produce output into plasmidin_output
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 plasmidin-1.0.0.tar.gz
.
File metadata
- Download URL: plasmidin-1.0.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be0459f7fcfb789715bd741e0f1882d4f1efb4c640dd89b598098cb2922bec1a |
|
MD5 | 0c5a0eedc2e70f116753a061b07af584 |
|
BLAKE2b-256 | 6a1608bbd0765582dd4d333907594b9642895ed3ef384718644b1017208b3cb8 |
File details
Details for the file plasmidin-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: plasmidin-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 953cdf580d6e0fad6bd4138da8fb0663b815d23e79808ccb02e0eb37f72bd1c8 |
|
MD5 | d9586bc1594f3e4a8d2880c3ff0790ff |
|
BLAKE2b-256 | 41e3924cedd17097d95fd31d01e58a1a5f09015ef6e3eeae91845ef095003b30 |