Question: Problems with R tool
0
gravatar for doja_07
2.5 years ago by
doja_070
doja_070 wrote:

Hey. I'm trying to create a new tool in galaxy in R Here's my xml file

<tool id="PLS_1" name="PLS">
<command interpreter="bash"> r_script_wrapper.sh /home/chaymae/galaxy/tools/R_tools/PLS.R
$value $output </command>
<inputs>
<param  name="value" label="data" type="tabular"/>
</inputs>
<outputs>
<data name="output" type="data" format="tabular"/>
</outputs></tool>

And here is my .R file

#!/usr/bin/Rscript
library(littler)
library(xlsx)
args <- commandArgs()
test<-read.xlsx(args[1], sheetIndex=1,colIndex=(c(4:5)),header=TRUE)

But when i restart galaxy i don't see the tool in my tool list

tool galaxy R • 628 views
ADD COMMENTlink modified 2.5 years ago by Hotz, Hans-Rudolf1.8k • written 2.5 years ago by doja_070
0
gravatar for Hotz, Hans-Rudolf
2.5 years ago by
Switzerland
Hotz, Hans-Rudolf1.8k wrote:

Hi

Assuming you have added the tool to the "tool_conf.xml" file, the logs will probably tell you that there is an error in the tool xml file.

I am pretty sure, there is no type="tabular" for the param tag set within the inputs tag set. Try something like:

name="value" type="data" format="tabular" label="Tab-delimited file

This will allow you to select a tabular file from your history

Regards, Hans-Rudolf

ADD COMMENTlink written 2.5 years ago by Hotz, Hans-Rudolf1.8k

Hi Thanks for your answer. Yes i added the tool in the "tool_conf.xml" And i changed type tabular to data but unfortunateky it's not working

ADD REPLYlink written 2.5 years ago by doja_070

and what error do you get in the logs? or when you reload the tool?

ADD REPLYlink modified 2.5 years ago • written 2.5 years ago by Hotz, Hans-Rudolf1.8k

I don't get any error, the tool is just not added to the tool list

ADD REPLYlink written 2.5 years ago by doja_070
  • when you restart galaxy, you will see a line like: "Parsing the tool configuration ./tool_conf.xml" in the log. Do you have any lines with "Error reading tool from path" further down?

  • even further down: do you get a line for all expected tools, with "Loaded tool id: xxx, version: xyz into tool panel.."

ADD REPLYlink written 2.5 years ago by Hotz, Hans-Rudolf1.8k

Do you mean in the terminal, cause in galaxy i don't see any line with "Parsing the tool configuration ./tool_conf.xml" I'm really sorry but i just started using galaxy and i added some tools in python but with R it doesn't work :/

ADD REPLYlink written 2.5 years ago by doja_070

yes in the terminal, or if you redirect the output to a log file, in the log file

ADD REPLYlink written 2.5 years ago by Hotz, Hans-Rudolf1.8k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 172 users visited in the last hour