BjornFJohansson / pydna

Clone with Python! Data structures for double stranded DNA & simulation of homologous recombination, Gibson assembly, cut & paste cloning.
Other
166 stars 45 forks source link

myprimers return SeqRecord and not pydna.primer.Primer objects #37

Closed BjornFJohansson closed 7 years ago

BjornFJohansson commented 7 years ago
from pydna.myprimers import primer_list

primer_list[666]

Out[2]: SeqRecord(seq=Seq('catctttgacagcttatcatcgataagctCGACTCACTATAGGGAGACC', IUPACAmbiguousDNA()), id='666_pYPK0_hygrev', name='666_pYPK0_hygrev', description='666_pYPK0_hygrev (70-mer)', dbxrefs=[])
BjornFJohansson commented 7 years ago
bjorn@bjorn-ThinkPad-T450s:~/Desktop/python_packages/pydna$ bjorn3
(bjorn3) bjorn@bjorn-ThinkPad-T450s:~/Desktop/python_packages/pydna$ ipython
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:53:06) 
Type "copyright", "credits" or "license" for more information.

IPython 5.3.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from pydna.myprimers import primer_list

In [2]: primer_list[666]
Out[2]: 666_pYPK0_hygrev 49-mer:5'-catctttgacagctt..ACC-3'

In [3]: type(primer_list[666])
Out[3]: pydna.primer.Primer

In [4]: