There are two issues I've found running this code:
1) I think shutil.which is only availible for python3 but the ipython notbook defaults to opening in python2. I switched to using subprocess and it works fine
def check_path(path):
"""Check if the specified program is in the PATH and can be run in a shell."""
import subprocess
checker = subprocess.check_output(['which',path])
if checker:
print('SUCCESS: {} found!'.format(path))
return checker
else:
raise OSError('FAILURE: unable to find {}'.format(path))
2) fatcat and scratch install instructions do not create mononyms for these programs. This is easily resolved:
https://github.com/SBRG/ssbio/blob/6f41652f716681a64f2f57aa3cc47eb1953e4ae4/docs/tutorials.ipynb#L7
There are two issues I've found running this code: 1) I think
shutil.which
is only availible for python3 but the ipython notbook defaults to opening in python2. I switched to using subprocess and it works fine2) fatcat and scratch install instructions do not create mononyms for these programs. This is easily resolved: