Mercurial > repos > recetox > riassigner
changeset 0:7cc615de435e draft
"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit dc8ac7e3c57d6448fa8e0422e9229e10d2b4525a"
author | recetox |
---|---|
date | Fri, 20 Aug 2021 12:27:54 +0000 |
parents | |
children | 97c0aae5eb69 |
files | macros.xml riassigner.xml |
diffstat | 2 files changed, 85 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml Fri Aug 20 12:27:54 2021 +0000 @@ -0,0 +1,21 @@ +<macros> + <token name="@TOOL_VERSION@">0.2.0</token> + <xml name="requirements"> + <requirements> + <requirement type="package" version="0.2.0">riassigner</requirement> + </requirements> + </xml> + <xml name="creator"> + <creator> + <organization + url="https://www.recetox.muni.cz/" + name="RECETOX MUNI" /> + </creator> + </xml> + + <token name="@HELP@"> + <![CDATA[ + RIAssigner can be used to read data from .msp, .csv and .tsv files using matchms and pandas and to compute the retention indices for the data. A reference list of retention indexed compounds (traditionally an Alkane series) with retention times is used to compute the RI for a query dataset of retention time values using the van den Dool method or by using cubic spline based interpolation. + ]]> + </token> +</macros>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/riassigner.xml Fri Aug 20 12:27:54 2021 +0000 @@ -0,0 +1,64 @@ +<tool id="riassigner" name="RIAssigner" version="@TOOL_VERSION@+galaxy0" python_template_version="3.5"> + <description>compute retention indices</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="creator"/> + <expand macro="requirements" /> + + <command detect_errors="exit_code"><![CDATA[ + sh ${symlink_inputs} && + python -m RIAssigner --reference "$reference.element_identifier" --query "$query.element_identifier" --method "$method" --output "output.${query.ext}" && + cp -r 'output.${query.ext}' '${output}' + ]]></command> + + <configfiles> + <configfile name="symlink_inputs"> + ln -s '${query}' '${query.element_identifier}' + ln -s '${reference}' '${reference.element_identifier}' + </configfile> + </configfiles> + + <inputs> + <param name="reference" type="data" format="csv,tsv,msp"> + <label>Reference compound list</label> + <help><![CDATA[ + A list of retention time and retention index pairs. + Expected columns for RT (oneof): ['rt', 'retention_time']. + Expected columns for RI (oneof): ['carbon_number', 'ri', 'retention_index']. + Retention time is expected to be in seconds. + ]]></help> + </param> + <param name="query" type="data" format="csv,tsv,msp"> + <label>Query compound list</label> + <help><![CDATA[ + A list of compounds with retention times for which to compute the retention index. + Expected columns for RT (oneof): ['rt', 'retention_time']. + Retention time is expected to be in seconds. + ]]></help> + </param> + <param label="Computation method" name="method" type="select" display="radio" help="Computation method to use."> + <option value="kovats" selected="true">Kovats</option> + <!-- <option value="cubicspline">CubicSpline </option> --> + </param> + </inputs> + + <outputs> + <data label="RI using $method of ${query.element_identifier}" name="output" format_source="query" /> + </outputs> + + <tests> + <test> + <param name="query" value="aplcms_aligned_peaks.csv" ftype="csv" /> + <param name="reference" value="Alkanes_20210325.csv" ftype="csv" /> + <param name="method" value="kovats" /> + <output name="output" file="results.csv" ftype="csv"/> + </test> + </tests> + + <help> + <![CDATA[ + @HELP@ + ]]> + </help> +</tool>