Skip to content

Commit

Permalink
Merge pull request #176 from rhysnewell/megahit-params
Browse files Browse the repository at this point in the history
megahit: Specify -m in bytes.
  • Loading branch information
wwood authored Nov 29, 2023
2 parents ea21847 + 33ca9c6 commit b9b193b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aviary/modules/assembly/scripts/assemble_short_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def assemble_short_reads(

# Run chosen assembler
if use_megahit:

command = f"megahit {read_string} -t {threads} -m {max_memory} -o data/megahit_assembly --tmp-dir {tmp_dir}"
max_memory_in_bytes = max_memory * 1024*1024*1024
command = f"megahit {read_string} -t {threads} -m {max_memory_in_bytes} -o data/megahit_assembly --tmp-dir {tmp_dir}"

with open(log, 'a') as logf:
logf.write(f"Queueing command {command}\n")
Expand Down

0 comments on commit b9b193b

Please sign in to comment.