Skip to content
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

Exit script on failed command. Plus minor changes #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mgymrek
Copy link

@mgymrek mgymrek commented Jan 8, 2016

The main purpose of this PR is to make scripts fail when subprocess.call(cmd, shell=True) returns a non-zero exit status. In most cases it doesn't make sense for the scripts to go any further in those cases. There are a couple other minor changes:

  • Add option -w to the install_dependencies.py and install_data.py scripts that allows the script to proceed even if one of the commands failes
  • Add option --no-cuda to install_dependencies.py since as far as I can tell installing inn doesn't work unless CUDA is installed.
  • Added a utils.py file with a helpful function for printing progress and error messages
  • Fixed small typo in header of the output file in basset_sad.py which should be alt_pred rather than alt pred
  • Made minor edit to docstring of the function snps_seq1 to reflect that it also outputs raw sequences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant