Skip to content

Commit

Permalink
Minor fix to fasta output.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggirelli committed Apr 4, 2018
1 parent 25e5e89 commit 02f2993
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/melt_duplex
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,10 @@ else:
fields = dict(re.findall(r'(tm):(.*?);', record.description))
if "tm" in fields.keys():
record.description = re.sub(r'(tm):(.*?);',
'tm=%.2f;' % output[4], record.description)
print(">%s\n%s" % (record.description, record.seq))
'tm:%.2f;' % output[4], record.description)
else:
print(">%s tm:%.2f;\n%s" % (
record.description, output[4], record.seq))
record.description += " tm:%.2f;" % output[4]
print(record.format("fasta").strip())
else:
print("%s\t%f\t%f\t%f\t%f\t%s" % output)

Expand Down

0 comments on commit 02f2993

Please sign in to comment.