From c96b25168854198e8b466631121e0445f08daba9 Mon Sep 17 00:00:00 2001 From: BjornFJohansson Date: Thu, 23 Nov 2023 18:39:08 +0000 Subject: [PATCH] changed to fasta-2line --- src/pydna/myprimers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pydna/myprimers.py b/src/pydna/myprimers.py index b585845a..c1f0f57e 100644 --- a/src/pydna/myprimers.py +++ b/src/pydna/myprimers.py @@ -144,7 +144,7 @@ def assign_numbers(self, lst: list): found.append(self[i]) new = new[::-1] newold = new + found - return _pretty_str("\n".join([p.format("fasta") for p in newold])) + return _pretty_str("\n".join([p.format("fasta-2line") for p in newold])) def pydna_code_from_list(self, lst: list): """Pydna code for a list of primer objects.""" @@ -155,7 +155,7 @@ def pydna_code_from_list(self, lst: list): try: prstrs.index(str(p.seq).upper()) except ValueError as e: - print(f"{p.format('fasta')}") + print(f"{p.format('fasta-2line')}") err = e else: indices.append(self.data.index(p)) @@ -167,7 +167,7 @@ def pydna_code_from_list(self, lst: list): msg += f"{self.identifier} = {curly}\n\n" msg += ", ".join(f"{self.identifier}[{i}]" for i in indices) msg += " = parse_primers('''\n\n" - msg += "\n".join(self[i].format("fasta") for i in indices) + msg += "\n".join(self[i].format("fasta-2line") for i in indices) msg += "\n''')" return _pretty_str(msg)