Open ning-y opened 8 months ago
Thanks for reporting this. The correct behavior should be to NOT overwrite results that already exists (to prevent that somebody executes the pipe accidentally again). If the cat step was already run (either successfully, or not), then the user should clean it up and then continue with cat.
However, I agree that the script should output a proper warning + what the user needs to do. And the symlinks of the 2bit is likely not a stable solution. Bogdan, can you pls have a look at some point?
Thx a lot
This is a low importance issue, because the use case is rare and the workaround is easy.
If make_lastz_chains is called with
--continue_from_step cat
, but the "cat" step has been run before, make_lastz_chains will fail with e.g.Because the "target.2bit" file was symlinked from the earlier run, and the os.symlink fails if the destination already exists.
The user workaround is to delete "target.2bit" which fixes this easily.
The developer fix is to check and remove the destination if it exists, or use a symbolic linking function which tolerates already existing destinations. Checking briefly, the os.symlink function does not have this option.