Skip to content

Commit

Permalink
Fixed duplicated output bug and typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggirelli committed Mar 2, 2021
1 parent 63a8049 commit 365028c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/melt_duplex
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,13 @@ def run_seq(seq, **kwargs):
kwargs.update([('name', 'seq'), ('seq', seq)])

# Calculate Tm
output = OligoMelt.XDuplex.calc_tm(**kwargs)
print_header(**kwargs)
kwargs['silent'] = True
output = OligoMelt.Duplex.calc_tm(**kwargs)

# Print output
print_header(fasta_like = fasta_like, **kwargs)
d = kwargs['fasta_delim']
if fasta_like: print(">seq tm%s%.2f;\n%s" % (d, output[4], seq))
if kwargs['fasta_like']: print(">seq tm%s%.2f;\n%s" % (d, output[4], seq))
else: print("%s\t%f\t%f\t%f\t%f\t%s" % output)

def run_fasta(fpath, **kwargs):
Expand Down

0 comments on commit 365028c

Please sign in to comment.