Skip to content

Installation unclear - only works from source folder? #1

Open
@peterjc

Description

@fmaguire I know this isn't your responsibility, I'm mainly posting this issue here to give it a little more visibility in the hope of helping others.

I had trouble getting runWolfPsortSummary to run unless I had first changed to its directory (e.g. /opt/WoLFPSORT_package_v0.2/bin on my machine). As a workaround, I created a short wrapper script to do that prior to running the tool:

#!/usr/bin/env python
#Wrapper script to call WoLF PSORT from its own directory.
import os
import sys
import subprocess
saved_dir = os.path.abspath(os.curdir)
os.chdir("/opt/WoLFPSORT_package_v0.2/bin")
args = ["./runWolfPsortSummary"] + sys.argv[1:]
return_code = subprocess.call(args)
os.chdir(saved_dir)
sys.exit(return_code)

See https://github.com/peterjc/pico_galaxy/blob/master/tools/protein_analysis/wolf_psort.py#L43 and this thread https://lists.galaxyproject.org/pipermail/galaxy-dev/2015-December/023386.html

This could be down to my own mistake, not being a Perl expert, but it worked for me and is how I installed and used WoLF PSORT from Galaxy, see https://github.com/peterjc/pico_galaxy/blob/master/tools/protein_analysis/wolf_psort.xml and http://dx.doi.org/10.7717/peerj.167

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions