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

Issues running the tutorial #45

Open
bkellman opened this issue Apr 30, 2018 · 1 comment
Open

Issues running the tutorial #45

bkellman opened this issue Apr 30, 2018 · 1 comment
Labels

Comments

@bkellman
Copy link

"# Index: Tutorials\n",

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))
  1. fatcat and scratch install instructions do not create mononyms for these programs. This is easily resolved:
sudo ln -s /<path>/biojava-protein-comparison-tool-4.0.0/runFATCAT.sh /usr/bin/fatcat
sudo ln -s /media/<path>/SCRATCH-1D_1.1/bin/run_SCRATCH-1D_predictors.sh /usr/bin/scratch
@nmih nmih added the bug label May 10, 2018
@nmih
Copy link
Member

nmih commented May 10, 2018

Thanks! Will implement that

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

No branches or pull requests

2 participants