Skip to content

Commit

Permalink
Update vienna_nupack.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-doty committed Oct 8, 2023
1 parent 483b9a4 commit 563a4a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nuad/vienna_nupack.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,10 @@ def rna_plex_multiple(pairs: Sequence[Tuple[str, str]],
'is a different error that I don\'t know how to handle. Exiting...'
f'\nerror:\n{error}')

with open('output/rna_plex_multiple_input.txt', 'w') as f:
f.write(user_input)
with open('output/rna_plex_multiple_output.txt', 'w') as f:
f.write(output)
# with open('output/rna_plex_multiple_input.txt', 'w') as f:
# f.write(user_input)
# with open('output/rna_plex_multiple_output.txt', 'w') as f:
# f.write(output)
lines = [line for line in output.split('\n') if line.strip() != '']
if len(lines) != len(pairs):
raise ValueError(f'lengths do not match: #lines:{len(lines) - 1} #seqpairs:{len(pairs)}')
Expand Down

0 comments on commit 563a4a7

Please sign in to comment.