Question: no result or error output with custom tool
0
gravatar for gavin.douglas
3.2 years ago by
Canada
gavin.douglas10 wrote:

Hey everybody,

 

 

I'm a newbie to galaxy and have been trying to wrap my head around the xml code needed to wrap tools in galaxy.

Below is the simple xml code I have been working with:

<tool id="biom_convert" name="Biom Convert">

    <description>convert BIOM HDF5 format to BIOM JSON format</description>

    <command interpreter="bash">biom convert -i $input -o $output --to-json</command>

    <inputs>

        <param format="biom" name="input" type="data" label="HDF5 input"/>

        <param format="tabular" name="output" type="text" label="JSON output"/>

    </inputs>

    <outputs>

        <data format="tabular" name="${output}" type="data" />

    </outputs>

    <help>

        This tool converts BIOM HDF5 format files to BIOM JSON format files.

    </help>

</tool>

When I run this command (after selecting the biom input and output files) the result file is empty (after successfully finishing job) and there is no error feedback. Anyone have ideas of what could be wrong or how I should troubleshoot?

Note that when I run the job on the command line it does work correctly. Also, the "biom" command is actually a bash script that runs this command:

exec pyqi --driver-name biom --command-config-module biom.interfaces.optparse.config -- "$@"

(pyqi is a python package... I still don't totally understand dependencies in galaxy, so I'm not sure whether this could be a problem or not)

Thanks in advance!

Gavin

 

software error galaxy • 1.2k views
ADD COMMENTlink modified 3.2 years ago • written 3.2 years ago by gavin.douglas10

when you run the job on the command line, do you run it as yourself or as the user your galaxy server is running as?

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

As the user the galaxy server is running as.

ADD REPLYlink written 3.2 years ago by gavin.douglas10
1
gravatar for gavin.douglas
3.2 years ago by
Canada
gavin.douglas10 wrote:

The tool is now working with this xml code (note I had to use this two-step tmp file approach since otherwise the program would refuse to overwrite the empty database file designated for output, which is just a characteristic of "biom"):

 

<tool id="biom_convert" name="Biom Convert">

    <description>convert BIOM HDF5 format to BIOM JSON format</description>

    <command interpreter="bash">biom convert -i $input -o "$biomOutput"_tmp.txt --table-type "OTU table" --to-json; cat "$biomOutput"_tmp.txt > "$biomOutput"; rm "$biomOutput"_tmp.txt  </command>

    <inputs>

        <param format="biom" name="input" type="data" label="HDF5 input"/>

    </inputs>

    <outputs>

        <data format="txt" name="biomOutput" label="biom_convert_output" />

    </outputs>

    <help>

        This tool converts BIOM HDF5 format files to BIOM JSON format files.

    </help>

</tool>

ADD COMMENTlink written 3.2 years ago by gavin.douglas10
0
gravatar for Hotz, Hans-Rudolf
3.2 years ago by
Switzerland
Hotz, Hans-Rudolf1.8k wrote:

Hi Gavin

 

I am just looking at your question again, I have realized, that you probably made a mistake in defining the inputs and outputs, try:

<inputs>

        <param format="biom" name="input" type="data" label="HDF5 input"/>

</inputs>

<outputs>

        <data format="tabular" name="output" label="JSON output />

    </outputs>


 

Hans-Rudolf

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

Thanks for your comments Hans-Rudolf, but with your suggestion I am unable specify an output filename which is necessary to run the program (so the output name needs to be a parameter).

ADD REPLYlink written 3.2 years ago by gavin.douglas10
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: 167 users visited in the last hour