Skip to content

Commit

Permalink
Fixes for Muscle v5
Browse files Browse the repository at this point in the history
  • Loading branch information
rrwick committed Oct 11, 2022
1 parent 399d7d4 commit 886fdd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trycycler/msa.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def run_muscle_one_piece(parameters):
if muscle_version.startswith('3'):
muscle_command = ['muscle', '-in', input_filename, '-out', output_filename]
elif muscle_version.startswith('5'):
muscle_command = ['muscle', '-align', input_filename, '-output', output_filename]
muscle_command = ['muscle', '-align', input_filename, '-output', output_filename,
'-threads', '1']
else:
assert False
with open(muscle_output_filename, 'wt') as muscle_output:
Expand Down
1 change: 1 addition & 0 deletions trycycler/software.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def parse_muscle_version(output):
elif 'muscle ' in output: # For version 5
output = output.split('muscle ')[1]
output = output.split('_')[0]
output = output.split('\n')[0]
return output.strip()
else:
return '?'
Expand Down

0 comments on commit 886fdd5

Please sign in to comment.