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
Metadata
Release files for plasmidin 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| plasmidin-1.0.0.tar.gz | 12.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| plasmidin-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.1 kB
Release files / plasmidin-1.0.0.tar.gz
| Download URL | plasmidin-1.0.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be0459f7fcfb789715bd741e0f1882d4f1efb4c640dd89b598098cb2922bec1a
|
|
BLAKE2b-256 checksum How to use checksums |
6a1608bbd0765582dd4d333907594b9642895ed3ef384718644b1017208b3cb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / plasmidin-1.0.0-py3-none-any.whl
| Download URL | plasmidin-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
953cdf580d6e0fad6bd4138da8fb0663b815d23e79808ccb02e0eb37f72bd1c8
|
|
BLAKE2b-256 checksum How to use checksums |
41e3924cedd17097d95fd31d01e58a1a5f09015ef6e3eeae91845ef095003b30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for plasmidin 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.