Strain#..: ?
Box......: ?
Position.: ?
Importing the pydna package. Pydna is open source, documentated here and has a support forum as well as a publication:
In [1]:
from pydna.all import *
In [2]:
pYPKa =read("pYPKa.gb")
This vector should be a circular 3128 bp DNA molecule.
In [3]:
pYPKa
Out[3]:
The circular seguid checksum of pYPKa should be
aV1eIrzOiCjvw01yvKkxDXHKLMk
In [4]:
pYPKa.cseguid()
Out[4]:
Importing the restriction enzyme to be used for cloning from Biopython. ZraI
In [5]:
from Bio.Restriction import EcoRV
This enzyme should cut only once in pYPKa.
In [6]:
pYPKa_EcoRV = pYPKa.linearize(EcoRV)
The template below comes from a Genbank record. Access to Genbank is needed in order to download the template. If you execute this script, change the email address below to your own. Always tell Genbank who you are, when using their web service.
In [7]:
gb =Genbank("bjornjobb@gmail.com")
The template is downloaded from Genbank below.
In [8]:
template = gb.nucleotide("BK006943.2 REGION: 337038..338270")
The template is a 1233 bp linear DNA fragment.
In [9]:
template
Out[9]:
The insert has the sequence shown below.
In [10]:
str(template.seq)
Out[10]:
Two primers are used to amplify the insert:
In [11]:
f,r =parse(""">547_ScTDH1tpf (27-mer)
ttaaatAAAAGCTCGACCTTAAATAAG
>653_ScTDH1tpr_PacI
taattaaTTTGTTTTGTGTGTAAATTTAG""", ds=False)
insert =pcr(f, r, template)
insert
Out[11]:
The primers anneal on the template like this.
In [12]:
insert.figure()
Out[12]:
A recombinant plasmid is formed by ligating the insert PCR product to the linear vector.
In [13]:
plasmid = (pYPKa_EcoRV + insert).looped()
The plasmid sequence is rotated so that the origin is in the same position as for the cloning vector sequence.
In [14]:
pYPKa_E_TDH1 = plasmid.synced(pYPKa)
In [15]:
pYPKa_E_TDH1.cseguid()
Out[15]:
The file is named pYPKa_E_TDH3tp
In [16]:
pYPKa_E_TDH1.name = "pYPKa_E_TDH1tp"
pYPKa_E_TDH1.description = "pYPKa_E_TDH1tp"
Stamp sequence with cSEGUID checksum
In [17]:
pYPKa_E_TDH1.stamp()
Out[17]:
Write sequence to a local file.
In [18]:
pYPKa_E_TDH1.write("pYPKa_E_TDH1.gb")
In [19]:
from pydna.all import *
reloaded =read("pYPKa_E_TDH1.gb")
assert reloaded.cseguid() in reloaded.definition
In [20]: