Correct how the temp bed files are created #9
This is slightly related to #4 and also to another issue that has been observed, the latter where some of the resulting bed files could end up with "corrupt" content, but never in a consistent way.
There appears to be a problem with how
The main problem is that, rather than using conventional methods of generating temp files, a file name is generated from
My thinking here is that it might be possible for more than one process to arrive on the same file name at the same time, and then both write to the same file and cause issues and apparent corruption.
This pull request contains changes that switch to using perl's own
Note that this also addresses/fixes shenlab-sinai#4 in that it does away with the code that was the cause of the problem.
Although the above change does away with the problematic code, hat-tip to @kb-bioinf for identifying what that problem was (