Entering edit mode
4.0 years ago
play.tatha
•
0
BAMoutput.cpp:27:BAMoutput: exiting because of OUTPUT FILE error: could not create output file /home/.../three_STARtmp//BAMsort/20/16
SOLUTION: check that the path exists and you have write permission for this file. Also check ulimit -n and increase it to allow more open files.
Can't figure out the actual issue.
Did you try what's written in SOLUTION or is it your attempts ?
Yes, I checked that the path is valid.
The ulimit -n showed 1024 as output.
Still, the issue is not resolved.
It is related to the --outSAMtype BAM SortedByCoordinate command. The issue is automatically resolved if --outSAMtype BAM Unsorted is used.
https://github.com/alexdobin/STAR/issues/529
We do not have your STAR command line but you can try to reduce the number of thread used and increase the ulimit even more. You can also sort your BAM file afterwards.