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

Bedtools runs infinitely with large memory usage under sorted option when there's unmapped reads #1113

Open
kheber opened this issue Jan 22, 2025 · 0 comments

Comments

@kheber
Copy link

kheber commented Jan 22, 2025

Hello,

Thank you for creating and maintaining bedtools: I find the various options that other tools do not offer very helpful.

In running bedtools subtract with the -sorted option and using .bam files for -a and -b, I found that when I did not remove unmapped reads that bedtools would run infinitely. Moreover, after a while the tool would grow its memory usage to around 40 GiB, and I believe this happens when it encounters the unmapped reads towards the end of the file. When I remove these reads from my .bam files, the issue is resolved. I have not tested similar behavior under bedtools intersect or other commands.

I am wondering if it would be possible to have bedtools skip these unmapped reads or at least throw a warning/error about it?

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

1 participant