-
Notifications
You must be signed in to change notification settings - Fork 37
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
Inconsistent exit codes #79
Comments
At first I thought that
This means that it is impossible to tell if the run was successful or not w/o checking the output files. |
Dear @alephreish, thank you for flagging this problem. Indeed the program was written purely (and poorly) as a standalone tool, with the expectation that the output files would be examined by a human, well before I understood or anticipated usage and conventions in pipelines like this. I really apologize and wish I had time and support for addressing this and myriad other inefficiencies. I do hope to undertake a complete rewrite in the future if I can find support to do so. In the meantime, please do let me know if there are any π or analysis questions I can help with. Thanks for your understanding! |
@singing-scientist As long as the behaviour of a piece of software is predictable, it is in principle possible to integrate it in a pipeline. SNPGenie is not a very hard case in this respect: e.g. If I find the time for this, do you accept pull requests? |
@alephreish thanks so much for your understanding and your generous proposal! I think if the changes are incredibly simple, say only employing die and exit in straightforward ways, I could find the time to evaluate the changes you might propose and run the necessary tests. (I'm sure you've already noticed the script is incredibly brittle and inelegant — the maiden coding voyage of yours truly.) But I really do apologize for my lack of bandwidth, as I would have no time to do this until at least February. Thanks again and let me know your thoughts. |
Hello, I noticed that
SNPGenie
's successful runs exit with what seems to me to be inconsistent exit codes: 0 or 25. From my experience, runs with warnings exit with code 0 and runs w/o warnings exit with code 25 which is particularly counterintuitive. Any code other than 0 means a failure. In practical terms, this breaks e.g. snakemake rules or stuff likesnpgenie.pl && mv results to_some_other_dir
. I'm usingsnpgenie 1.0
via bioconda.The text was updated successfully, but these errors were encountered: