Mercurial > repos > galaxyp > openms_xfdr
view XFDR.xml @ 8:87dda030bc92 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
author | galaxyp |
---|---|
date | Thu, 01 Dec 2022 18:59:41 +0000 |
parents | 9a6e3bb0f358 |
children | cf9b51c0b15e |
line wrap: on
line source
<?xml version='1.0' encoding='UTF-8'?> <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.--> <!--Proposed Tool Section: [ID Processing]--> <tool id="XFDR" name="XFDR" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> <description>Calculates false discovery rate estimates on crosslink identifications</description> <macros> <token name="@EXECUTABLE@">XFDR</token> <import>macros.xml</import> </macros> <expand macro="requirements"/> <expand macro="stdio"/> <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ @EXT_FOO@ #import re ## Preprocessing #if $in: mkdir in && ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && #end if #if "out_idXML_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir out_idXML && #end if #if "out_mzIdentML_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir out_mzIdentML && #end if #if "out_xquest_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir out_xquest && #end if ## Main program call set -o pipefail && @EXECUTABLE@ -write_ctd ./ && python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && @EXECUTABLE@ -ini @EXECUTABLE@.ctd #if $in: -in 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' #end if #if "out_idXML_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -out_idXML 'out_idXML/output.${gxy2omsext("idxml")}' #end if #if "out_mzIdentML_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -out_mzIdentML 'out_mzIdentML/output.${gxy2omsext("mzid")}' #end if #if "out_xquest_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -out_xquest 'out_xquest/output.${gxy2omsext("xquest.xml")}' #end if #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0 | tee '$stdout' #end if ## Postprocessing #if "out_idXML_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'out_idXML/output.${gxy2omsext("idxml")}' '$out_idXML' #end if #if "out_mzIdentML_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'out_mzIdentML/output.${gxy2omsext("mzid")}' '$out_mzIdentML' #end if #if "out_xquest_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'out_xquest/output.${gxy2omsext("xquest.xml")}' '$out_xquest' #end if #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS && mv '@EXECUTABLE@.ctd' '$ctd_out' #end if]]></command> <configfiles> <inputs name="args_json" data_style="paths"/> <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> </configfiles> <inputs> <param argument="-in" type="data" format="idxml,mzid,xquest.xml" optional="true" label="Crosslink Identifications in either xquest.xml, idXML, or mzIdentML format (as produced by OpenPepXL)" help=" select idxml,mzid,xquest.xml data sets(s)"/> <param argument="-decoy_string" type="text" optional="true" value="DECOY_" label="Prefix of decoy protein ids" help="The correspondig target protein id should be retrievable by deleting this prefix"> <expand macro="list_string_san" name="decoy_string"/> </param> <param argument="-minborder" type="float" optional="true" value="-50.0" label="Filter for minimum precursor mass error (ppm) before FDR estimation" help="Values outside of the tolerance window of the original search will effectively disable this filter"/> <param argument="-maxborder" type="float" optional="true" value="50.0" label="Filter for maximum precursor mass error (ppm) before FDR estimation" help="Values outside of the tolerance window of the original search will effectively disable this filter"/> <param argument="-mindeltas" type="float" optional="true" min="0.0" max="1.0" value="0.0" label="Filter for delta score, 0 disables the filte" help="Minimum delta score required, hits are rejected if larger or equal. The delta score is a ratio of the score of a hit and the score of the next best hit to the same spectrum, so the value range is between 0 and 1 with 1.0 meaning the scores are equal and 0.5 meaning the next best score is half as high as the current one"/> <param argument="-minionsmatched" type="integer" optional="true" min="0" value="0" label="Filter for minimum matched ions per peptide" help=""/> <param argument="-uniquexl" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Calculate statistics based only on unique IDs" help="For a set of IDs from equal candidates (same pair of peptides, modifications and cross-linked positions), only the highest scoring hit will be considered. By default the score distribution will be estimated using all 1st ranked candidates"/> <param argument="-no_qvalues" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Do not transform simple FDR to q-values" help=""/> <param argument="-minscore" type="float" optional="true" value="-10.0" label="Minimum score to be considered for FDR calculation" help="A number lower than the lowest score will effectively disable this filter"/> <param argument="-binsize" type="float" optional="true" min="0.0" value="0.0001" label="Bin size for the cumulative histograms for score distributions" help="Should be about the same size as the smallest expected difference between scores. Smaller numbers will make XFDR more robust, but much slower. Negative numbers are not allowed. Should only be changed if the range of the main score changes or another score than the OpenPepXL score is used"/> <expand macro="adv_opts_macro"> <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> <expand macro="list_string_san" name="test"/> </param> </expand> <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> <option value="out_idXML_FLAG">out_idXML (Output as idXML file)</option> <option value="out_mzIdentML_FLAG">out_mzIdentML (Output as mzIdentML file)</option> <option value="out_xquest_FLAG">out_xquest (Output as xquest.xml file)</option> <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> </param> </inputs> <outputs> <data name="out_idXML" label="${tool.name} on ${on_string}: out_idXML" format="idxml"> <filter>OPTIONAL_OUTPUTS is not None and "out_idXML_FLAG" in OPTIONAL_OUTPUTS</filter> </data> <data name="out_mzIdentML" label="${tool.name} on ${on_string}: out_mzIdentML" format="mzid"> <filter>OPTIONAL_OUTPUTS is not None and "out_mzIdentML_FLAG" in OPTIONAL_OUTPUTS</filter> </data> <data name="out_xquest" label="${tool.name} on ${on_string}: out_xquest" format="xquest.xml"> <filter>OPTIONAL_OUTPUTS is not None and "out_xquest_FLAG" in OPTIONAL_OUTPUTS</filter> </data> <data name="stdout" format="txt" label="${tool.name} on ${on_string}: stdout"> <filter>OPTIONAL_OUTPUTS is None</filter> </data> <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> </data> </outputs> <tests><!-- TOPP_XFDR_1 --> <test expect_num_outputs="4"> <section name="adv_opts"> <param name="force" value="false"/> <param name="test" value="true"/> </section> <param name="in" value="XFDR_test_in1.idXML"/> <output name="out_idXML" file="XFDR_test_out1_temp.idXML" compare="sim_size" delta_frac="0.7" ftype="idxml"/> <output name="out_mzIdentML" file="XFDR_test_out1_temp.mzid" compare="sim_size" delta_frac="0.7" ftype="mzid"/> <output name="out_xquest" file="XFDR_test_out1_temp.xquest.xml" compare="sim_size" delta_frac="0.7" ftype="xquest.xml"/> <param name="decoy_string" value="DECOY_"/> <param name="minborder" value="-50.0"/> <param name="maxborder" value="50.0"/> <param name="mindeltas" value="0.0"/> <param name="minionsmatched" value="0"/> <param name="uniquexl" value="false"/> <param name="no_qvalues" value="false"/> <param name="minscore" value="-10.0"/> <param name="binsize" value="0.1"/> <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_idXML_FLAG,out_mzIdentML_FLAG,out_xquest_FLAG"/> <output name="ctd_out" ftype="xml"> <assert_contents> <is_valid_xml/> </assert_contents> </output> </test> <!-- TOPP_XFDR_2 --> <test expect_num_outputs="4"> <section name="adv_opts"> <param name="force" value="false"/> <param name="test" value="true"/> </section> <param name="in" value="XFDR_test_in1.idXML"/> <output name="out_idXML" file="XFDR_test_out2_temp.idXML" compare="sim_size" delta_frac="0.7" ftype="idxml"/> <output name="out_mzIdentML" file="XFDR_test_out2_temp.mzid" compare="sim_size" delta_frac="0.7" ftype="mzid"/> <output name="out_xquest" file="XFDR_test_out2_temp.xquest.xml" compare="sim_size" delta_frac="0.7" ftype="xquest.xml"/> <param name="decoy_string" value="DECOY_"/> <param name="minborder" value="-50.0"/> <param name="maxborder" value="50.0"/> <param name="mindeltas" value="0.0"/> <param name="minionsmatched" value="0"/> <param name="uniquexl" value="true"/> <param name="no_qvalues" value="true"/> <param name="minscore" value="-10.0"/> <param name="binsize" value="0.1"/> <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_idXML_FLAG,out_mzIdentML_FLAG,out_xquest_FLAG"/> <output name="ctd_out" ftype="xml"> <assert_contents> <is_valid_xml/> </assert_contents> </output> </test> <!-- TOPP_XFDR_3 --> <test expect_num_outputs="4"> <section name="adv_opts"> <param name="force" value="false"/> <param name="test" value="true"/> </section> <param name="in" value="XFDR_test_in2.xquest.xml"/> <output name="out_idXML" file="XFDR_test_out3_temp.idXML" compare="sim_size" delta_frac="0.7" ftype="idxml"/> <output name="out_mzIdentML" file="XFDR_test_out3_temp.mzid" compare="sim_size" delta_frac="0.7" ftype="mzid"/> <output name="out_xquest" file="XFDR_test_out3_temp.xquest.xml" compare="sim_size" delta_frac="0.7" ftype="xquest.xml"/> <param name="decoy_string" value="DECOY_"/> <param name="minborder" value="-50.0"/> <param name="maxborder" value="50.0"/> <param name="mindeltas" value="0.0"/> <param name="minionsmatched" value="0"/> <param name="uniquexl" value="false"/> <param name="no_qvalues" value="false"/> <param name="minscore" value="0.0"/> <param name="binsize" value="0.1"/> <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_idXML_FLAG,out_mzIdentML_FLAG,out_xquest_FLAG"/> <output name="ctd_out" ftype="xml"> <assert_contents> <is_valid_xml/> </assert_contents> </output> </test> <!-- TOPP_XFDR_4 --> <test expect_num_outputs="4"> <section name="adv_opts"> <param name="force" value="false"/> <param name="test" value="true"/> </section> <param name="in" value="XFDR_test_in2.xquest.xml"/> <output name="out_idXML" file="XFDR_test_out4_temp.idXML" compare="sim_size" delta_frac="0.7" ftype="idxml"/> <output name="out_mzIdentML" file="XFDR_test_out4_temp.mzid" compare="sim_size" delta_frac="0.7" ftype="mzid"/> <output name="out_xquest" file="XFDR_test_out4_temp.xquest.xml" compare="sim_size" delta_frac="0.7" ftype="xquest.xml"/> <param name="decoy_string" value="DECOY_"/> <param name="minborder" value="-3.0"/> <param name="maxborder" value="3.0"/> <param name="mindeltas" value="0.0"/> <param name="minionsmatched" value="0"/> <param name="uniquexl" value="false"/> <param name="no_qvalues" value="false"/> <param name="minscore" value="-10.0"/> <param name="binsize" value="0.1"/> <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_idXML_FLAG,out_mzIdentML_FLAG,out_xquest_FLAG"/> <output name="ctd_out" ftype="xml"> <assert_contents> <is_valid_xml/> </assert_contents> </output> </test> <!-- TOPP_XFDR_5 --> <test expect_num_outputs="4"> <section name="adv_opts"> <param name="force" value="false"/> <param name="test" value="true"/> </section> <param name="in" value="XFDR_test_in3.xquest.xml"/> <output name="out_idXML" file="XFDR_test_out5_temp.idXML" compare="sim_size" delta_frac="0.7" ftype="idxml"/> <output name="out_mzIdentML" file="XFDR_test_out5_temp.mzid" compare="sim_size" delta_frac="0.7" ftype="mzid"/> <output name="out_xquest" file="XFDR_test_out5_temp.xquest.xml" compare="sim_size" delta_frac="0.7" ftype="xquest.xml"/> <param name="decoy_string" value="DECOY_"/> <param name="minborder" value="-3.0"/> <param name="maxborder" value="3.0"/> <param name="mindeltas" value="0.0"/> <param name="minionsmatched" value="0"/> <param name="uniquexl" value="false"/> <param name="no_qvalues" value="false"/> <param name="minscore" value="-10.0"/> <param name="binsize" value="0.1"/> <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_idXML_FLAG,out_mzIdentML_FLAG,out_xquest_FLAG"/> <output name="ctd_out" ftype="xml"> <assert_contents> <is_valid_xml/> </assert_contents> </output> </test> <!-- TOPP_XFDR_6 --> <test expect_num_outputs="2"> <section name="adv_opts"> <param name="force" value="false"/> <param name="test" value="true"/> </section> <param name="in" value="XFDR_test_in4.idXML"/> <output name="out_idXML" file="XFDR_test_out6_temp.idXML" compare="sim_size" delta_frac="0.7" ftype="idxml"/> <param name="decoy_string" value="DECOY_"/> <param name="minborder" value="-50.0"/> <param name="maxborder" value="50.0"/> <param name="mindeltas" value="0.0"/> <param name="minionsmatched" value="0"/> <param name="uniquexl" value="false"/> <param name="no_qvalues" value="false"/> <param name="minscore" value="-10.0"/> <param name="binsize" value="0.1"/> <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_idXML_FLAG"/> <output name="ctd_out" ftype="xml"> <assert_contents> <is_valid_xml/> </assert_contents> </output> </test> <!-- TOPP_XFDR_7 --> <test expect_num_outputs="4"> <section name="adv_opts"> <param name="force" value="false"/> <param name="test" value="true"/> </section> <param name="in" value="XFDR_test_in2.xquest.xml"/> <output name="out_idXML" file="XFDR_test_out7_temp.idXML" compare="sim_size" delta_frac="0.7" ftype="idxml"/> <output name="out_mzIdentML" file="XFDR_test_out7_temp.mzid" compare="sim_size" delta_frac="0.7" ftype="mzid"/> <output name="out_xquest" file="XFDR_test_out7_temp.xquest.xml" compare="sim_size" delta_frac="0.7" ftype="xquest.xml"/> <param name="decoy_string" value="DECOY_"/> <param name="minborder" value="-50.0"/> <param name="maxborder" value="50.0"/> <param name="mindeltas" value="0.0"/> <param name="minionsmatched" value="0"/> <param name="uniquexl" value="true"/> <param name="no_qvalues" value="false"/> <param name="minscore" value="0.0"/> <param name="binsize" value="0.1"/> <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_idXML_FLAG,out_mzIdentML_FLAG,out_xquest_FLAG"/> <output name="ctd_out" ftype="xml"> <assert_contents> <is_valid_xml/> </assert_contents> </output> </test> </tests> <help><![CDATA[Calculates false discovery rate estimates on crosslink identifications For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/TOPP_XFDR.html]]></help> <expand macro="references"/> </tool>