Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to define memory usage in 'samtools sort' #362

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ycl6
Copy link

@ycl6 ycl6 commented Oct 29, 2024

This PR makes the following changes:

  • When using CPU/juicer.sh and CPU/mega_from_bams_diploid.sh, users can define memory per thread in samtools sort using --mem, for example, --mem 8G
  • For PBS and Slurm schedulers, the memory per thread setting in samtools sort is calculated based on the preexisting resource requests

With the ability to increase the memory per thread setting, it will reduce the number of temporary files produced during sorting. With large dataset, users can set a larger value to prevent the "Too many open files" error from happening (e.g. #343), as the default used by samtools sort is only 768M per thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant