Skip to content

Commit

Permalink
megahit: Specify -m in bytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
wwood committed Nov 29, 2023
1 parent ea21847 commit 33ca9c6
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 33ca9c6

Please sign in to comment.