I am receiving the following error when I try to use bedmap to get the coverage of specific coordinates in a bed file:
Error: SortDetails.cpp, 1111: Unable to create FILE* for temp file: No space left on device. Out of memory.
I understand that I have to free up space somewhere in my files, don't know exactly where. Also, I am on a university network so do not have admin privileges to use commands like sudo -apt clean to remove cache or whatever files are getting stored where there is little memory. The folder I am using is our labs folder and has plenty of space (10 TB), so confused why the error is there. Appreciate any help!
My df -h output is shown here:
https://docs.google.com/presentation/d/1BlnrlnXxbjpK2BsgPqNcmaetmhWhoON1omlv4tm7D9k/edit?usp=sharing
Your
/tmpis out of space. Unless bedmap allows setting a different temp location (or accepts the value in$TMPDIR, and thus lets you change the temp location), you'll need to clean up your temp location.On second thought, your
/tmponly shows a use of 1%, so my suggestion might not really applyIs there a way to set a different temp location?
If the manual does not provide an option for this, try setting
TMPDIRto a directory under$PWDlike so:If the command runs to completion successfully,
This will not solve this particular problem, as
sort-beddoes not use the POSIXtempnamfunction (as it is not entirely safe to use on a multiuser system), and so it does not useTMPDIR. It would be a useful feature enhancement, but it is easy enough to specify--tmpdirand--max-mem.Sorry, I was looking at bedmap, not sort-bed.
bedmapdoesn't seem to have a tmp-dir option.I don't think that it would. I don't know why that error would come out of
bedmap. If that's the case, I'd love to see what command is being sent.Just wanted to say thank you guys for your help in this, Alex I know you had initially helped me with getting raw reads of my coordinates in a bed file from my bam file. Always so thankful for the time you guys give for detailed answers!
Thank you Ram for your help in this. Really appreciative of the help you give us all in helping troubleshoot errors we encounter.