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

Cleanup temp alignment BAM files before usage #1

Open
Noam-St opened this issue Mar 15, 2021 · 0 comments
Open

Cleanup temp alignment BAM files before usage #1

Noam-St opened this issue Mar 15, 2021 · 0 comments

Comments

@Noam-St
Copy link

Noam-St commented Mar 15, 2021

Hello,
a test run on a fresh code of your pipeline with all the dependencies installed in cwd did not work. More specifically, it failed with the following errors: needLargeMem: trying to allocate 0 bytes (limit: 10000000000) this occurs when bedGraphToBigWig tries to work on an empty file as an input.
After a lot of digging in your code, I found the reason in line 828: find ${TMPDIR} -name "*.sort.bam" -size -1024k -delete this line deleted the *.sort.bam temp files before bedtools bamtobed had a chance to convert them. Thus the bedtools commands failed with a suppressed error (kill.warnings) and the std_out created empty bed.gz files which were given as input to bedGraphToBigWig.

The simple fix I implemented is just commenting out line 828, but I wanted to post it here in case a better fix can be implemented.

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