Closed Jo-stfc closed 3 years ago
I think you're misunderstanding something there? The tool path is the runnable thing, and --galaxy_root
can point to a galaxy instance you already have on disk. The documented usage is this
Usage: planemo test [OPTIONS] TOOL_PATH
which you can modify with all of the options listed in planemo --help
. If you have any suggestions for improving the help section let us know
Maybe that wasnt clear, I have a tool xml in pm_muairss_write/pm_muairss_write.xml and galaxy installed in muon-galaxy folder. running planemo test --galaxy_root=muon-galaxy pm_muairss_write will give this error: can't copy '/pm_muairss_write/muon-galaxy/lib/galaxy/webapps/base/static/style/base.css': doesn't exist or not a regular file where it tries to find base galaxy files within the tool folder
I don't quite understand your filesystem layout, but you can't have galaxy inside of your tool folder, is that the problem ?
I dont have it within the tool folder. I've tried both with the tool folder within galaxy/tools and as a sibling folder to the galaxy root. Both give the same error
Can you post the command you're running and the output ? I think something is going quite wrong there. fwiw this is working correctly:
planemo test --galaxy_root=~/src/galaxy ~/src/tools-iuc/tools/minimap2/minimap2.xml
planemo test planemo test --galaxy_root=~/muon-galaxy ~/muon-galaxy/tools/muon-galaxy-tools/pm_muairss_write/pm_muairss_write.xml
planemo test planemo test --galaxy_root=~/muon-galaxy ~/muon-galaxy-tools/pm_muairss_write/pm_muairss_write.xml
Traceback (most recent call last):
File "\~/.local/bin/planemo", line 8, in
this seems to have been an issue with the installed galaxy instance than planemo. It's been resolved now
test command runs as: planemo test runnable/path tool/path instead of: planemo test --galaxy_root=runnable/path tool/path
the runnable that's passed into for_runnable_identifiers is the first nonflagged argument passed, irrespective of wether the galaxy root has been set. The Python version I'm using is 3.9.7