Hello everyone,
I am developing galaxy tools for the first time and I would like my tools to be as simple as possible. I’m developing on R scripts. I’ve finished my xml structure with my command for running my R code :
...
<command detect_errors="exit_code"><![CDATA[
Rscript '$__tool_directory__/CAMERA_groupFWHM.R'
'$image'
$groupfwhm.sigma
$groupfwhm.perfwhm
$groupfwhm.intval
]]></command>
<inputs>
<param name="image" type="data" label="RData file" format="rdata.xcms.fillpeaks,rdata" help="output file from another function xcms (fillPeaks)" />
<section name="groupfwhm" title="Group co-eluted peals based on RT" expanded="True">
<param name="sigma" type="integer" value="6" label="the multiplier of the standard deviation"/>
<param name="perfwhm" type="float" value="0.6" max="1" min="0" label="percentage of the width of the FWHM"/>
<param name="intval" type="select" label="intensity values for ordering. Allowed values are into, maxo, intb">
<option value="into" selected="true">into</option>
<option value="maxo">maxo</option>
<option value="intb">intb</option>
</param>
</section>
</inputs>
...
I’d like to retrieve my arguments in my CAMERA_groupFWHM.R file to execute a single function:
xsAnnotateObj <- groupFWHM(xsAnnotateObj, sigma = sigma, perfwhm = perfwhm, intval = intval)
If you have a simple and clean way of transmitting your arguments between your xml file and your R script, I’d love to hear from you!