Skip to content

Commit

Permalink
bin/snakemake_mqsub: Use minimum 1G of RAM
Browse files Browse the repository at this point in the history
  • Loading branch information
wwood committed Jan 14, 2025
1 parent 82cf28f commit 0675f47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/snakemake_mqsub
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ if __name__ == '__main__':
if 'mem_mb' in job_properties['resources']:
mem_mb = job_properties['resources']['mem_mb']
mem_gb = int(mem_mb / 1024)
if mem_gb < 1:
mem_gb = 1
mem_argument = "-m {}".format(mem_gb)
else:
mem_argument = ''
Expand Down

0 comments on commit 0675f47

Please sign in to comment.