-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple instances of SISTR on same machine can interfere with each other #18
Comments
Yes, the error is definitely occurring due to the same Would there be a scenario where files with the same base filename are run at the same time? A potential workaround would be to distinguish different input files by providing a for i in {1..2}; do
sistr -f csv -o predictions_$i \
-i /path/to/AE014613.fasta <genome_name>_$i \
2> $i.err 1> $i.out & done This should produce
Or you could specify different base I could add a condition to the |
Hmmm... with the current setup I have the files are named the same as I do an assembly first, so the file becomes something like The scenario I'm thinking of is automatically running SISTR on upload of sequencing data from a sequencing run. However, in general, they probably won't all run at the same time, except for my small test data. I do think it's something to fix up though, either through your suggesting, or by using one of the tempfile functions (which will assign just random names). |
Okay, I'll work up a fix and a new release with the check on tmp dir creation. In the scenario you describe, would you be able to provide a genome name (or some kind of unique and useful identifier) to your input fasta? You could keep it as
So the SISTR output would show the name as |
Awesome, thanks :) Yes, I'll also look at giving the genomes passed to SISTR a better name. |
I've found that if you run multiple instances of SISTR on the same machine, starting all of them at the exact same time, they can interfere with each other's results.
For example, running:
Will produce the following in the stderr files:
This error does not occur if only running one instance at a time. I'm guessing each instance is interfering with each other's
tmp
files.The text was updated successfully, but these errors were encountered: