There is an issue running multiple instances of SUPER-FOCUS when they are instantiated e.g. from snakemake. This PR does two things:
Create a temp directory for the intermediate files to be written to
Convert os.system calls to subprocess calls which are more robust and allow you to check the return code.
This PR will improve the overall stability of using diamond with SUPER-FOCUS
However, this does not completely resolve the issue with running SUPER-FOCUS using diamond on a cluster. The diamond documentation, alas, says not to do this (see How to run the program on multiple input files? on the diamond FAQ
There is an issue running multiple instances of
SUPER-FOCUS
when they are instantiated e.g. fromsnakemake
. This PR does two things:os.system
calls tosubprocess
calls which are more robust and allow you to check the return code.This PR will improve the overall stability of using
diamond
withSUPER-FOCUS
However, this does not completely resolve the issue with running
SUPER-FOCUS
usingdiamond
on a cluster. Thediamond
documentation, alas, says not to do this (see How to run the program on multiple input files? on the diamond FAQ