Skip to content

Commit

Permalink
Merge branch 'dev_bjorn' into ligate
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Nov 23, 2023
2 parents dfa1054 + c96b251 commit 0a8a446
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pydna/myprimers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand All @@ -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))
Expand All @@ -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)

Expand Down

0 comments on commit 0a8a446

Please sign in to comment.