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

Error: not enough memory for BAM sorting #30

Closed
XLIU-hub opened this issue Jan 17, 2024 · 4 comments
Closed

Error: not enough memory for BAM sorting #30

XLIU-hub opened this issue Jan 17, 2024 · 4 comments

Comments

@XLIU-hub
Copy link
Collaborator

Hi,
An error occurs for BAM sorting, STAR indicates 47G ram memory.

Max memory needed for sorting = 45988878036
EXITING because of fatal ERROR: not enough memory for BAM sorting:
SOLUTION: re-run STAR with at least --limitBAMsortRAM 46988878036

Logfile:
Log.log.txt

XLIU-hub pushed a commit that referenced this issue Jan 17, 2024
This fixes a memory limit issue, see #30
@Redmar-van-den-Berg
Copy link
Contributor

This issue on STAR could be related, it looks like STAR doesn't handle sorting very well if the input is already sorted by coordinate. alexdobin/STAR#289

@Redmar-van-den-Berg
Copy link
Contributor

We should probably switch to using samtools to sort the output, instead of having STAR create the bam file. This will also allow us to determine the output filename.

We can use an existing multi-package-container for STAR and samtools:

hash=$(mulled-hash star=2.7.10b,samtools=1.16.1,gawk=5.1.0 --hash v2)
url="docker://quay.io/biocontainers/${hash}-0"
echo $url
docker://quay.io/biocontainers/mulled-v2-1fa26d1ce03c295fe2fdcf85831a92fbcbd7e8c2:a53b7c56addcc8233531e25d69b320bc56964994-0

@Redmar-van-den-Berg
Copy link
Contributor

@XLIU-hub Is this still a problem or can this issue be closed?

@XLIU-hub
Copy link
Collaborator Author

Did not run into this issue in the diagnostic samples. Probably STAR estimate to memory usage pretty high if the sample is sorted.

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

No branches or pull requests

2 participants