Skip to content

Commit

Permalink
added USER cloning test
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Feb 2, 2024
1 parent 0350a93 commit f17e73e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions scripts/BioJSON-master/genbank_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Copyright (c) 2011 Anselm Levskaya (http://anselmlevskaya.com)
Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
"""

import json
from optparse import OptionParser

Expand Down
16 changes: 9 additions & 7 deletions src/pydna/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,14 +684,16 @@ def assembly_fragments(f, overlap=35, maxlink=40):
f = [item for item in f if len(item)]

return [
_pcr(
p.forward_primer,
p.reverse_primer,
p.template,
limit=min((p.forward_primer._fp, p.reverse_primer._fp)),
(
_pcr(
p.forward_primer,
p.reverse_primer,
p.template,
limit=min((p.forward_primer._fp, p.reverse_primer._fp)),
)
if hasattr(p, "template")
else p
)
if hasattr(p, "template")
else p
for p in f
]

Expand Down
1 change: 1 addition & 0 deletions tests/test_USERcloning.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pydna.parsers import parse, parse_primers
from pydna.amplify import pcr


def test_USER_cloning():

primers = """
Expand Down

0 comments on commit f17e73e

Please sign in to comment.