Mercurial > repos > galaxyp > openms_textexporter
view TextExporter.xml @ 9:27aeff17fd2e draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
author | galaxyp |
---|---|
date | Thu, 27 Aug 2020 19:45:29 -0400 |
parents | 3a2a31d4032c |
children | 1c596fdaf34a |
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: [File Handling]--> <tool id="TextExporter" name="TextExporter" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> <description>Exports various XML formats to a text file.</description> <macros> <token name="@EXECUTABLE@">TextExporter</token> <import>macros.xml</import> <import>macros_autotest.xml</import> <import>macros_test.xml</import> </macros> <expand macro="requirements"/> <expand macro="stdio"/> <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ @EXT_FOO@ #import re ## Preprocessing mkdir in && ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir out && #end if #if "centroids_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir consensus_centroids && #end if #if "elements_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir consensus_elements && #end if #if "features_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir consensus_features && #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 -in 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -out 'out/output.${gxy2omsext("csv")}' #end if #if "centroids_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -consensus:centroids 'consensus_centroids/output.${gxy2omsext("csv")}' #end if #if "elements_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -consensus:elements 'consensus_elements/output.${gxy2omsext("csv")}' #end if #if "features_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -consensus:features 'consensus_features/output.${gxy2omsext("csv")}' #end if #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0 | tee '$stdout' #end if ## Postprocessing #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'out/output.${gxy2omsext("csv")}' '$out' #end if #if "centroids_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'consensus_centroids/output.${gxy2omsext("csv")}' '$consensus_centroids' #end if #if "elements_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'consensus_elements/output.${gxy2omsext("csv")}' '$consensus_elements' #end if #if "features_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'consensus_features/output.${gxy2omsext("csv")}' '$consensus_features' #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 name="in" argument="-in" type="data" format="consensusxml,featurexml,idxml,mzml" optional="false" label="Input file" help=" select consensusxml,featurexml,idxml,mzml data sets(s)"/> <param name="separator" argument="-separator" type="text" optional="true" value="" label="The used separator character(s); if not set the 'tab' character is used" help=""> <expand macro="list_string_san"/> </param> <param name="replacement" argument="-replacement" type="text" optional="true" value="_" label="Used to replace occurrences of the separator in strings before writing, if 'quoting' is 'none'" help=""> <expand macro="list_string_san"/> </param> <param name="quoting" argument="-quoting" display="radio" type="select" optional="false" label="Method for quoting of strings: 'none' for no quoting, 'double' for quoting with doubling of embedded quotes" help="'escape' for quoting with backslash-escaping of embedded quotes"> <option value="none" selected="true">none</option> <option value="double">double</option> <option value="escape">escape</option> <expand macro="list_string_san"/> </param> <param name="no_ids" argument="-no_ids" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Suppresses output of identification data" help=""/> <section name="feature" title="Options for featureXML input files" help="" expanded="false"> <param name="minimal" argument="-feature:minimal" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Set this flag to write only three attributes: RT, m/z, and intensity" help=""/> <param name="add_metavalues" argument="-feature:add_metavalues" type="integer" optional="true" min="-1" max="100" value="-1" label="Add columns for meta values which occur with a certain frequency (0-100%)" help="Set to -1 to omit meta values (default)"/> </section> <section name="id" title="Options for idXML input files" help="" expanded="false"> <param name="proteins_only" argument="-id:proteins_only" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Set this flag if you want only protein information from an idXML file" help=""/> <param name="peptides_only" argument="-id:peptides_only" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Set this flag if you want only peptide information from an idXML file" help=""/> <param name="protein_groups" argument="-id:protein_groups" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Set this flag if you want to also write indist" help="group information from an idXML file"/> <param name="first_dim_rt" argument="-id:first_dim_rt" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If this flag is set the first_dim RT of the peptide hits will also be printed (if present)" help=""/> <param name="add_metavalues" argument="-id:add_metavalues" type="integer" optional="true" min="-1" max="100" value="-1" label="Add columns for meta values of PeptideID (=spectrum) entries which occur with a certain frequency (0-100%)" help="Set to -1 to omit meta values (default)"/> <param name="add_hit_metavalues" argument="-id:add_hit_metavalues" type="integer" optional="true" min="-1" max="100" value="-1" label="Add columns for meta values of PeptideHit (=PSM) entries which occur with a certain frequency (0-100%)" help="Set to -1 to omit meta values (default)"/> <param name="add_protein_hit_metavalues" argument="-id:add_protein_hit_metavalues" type="integer" optional="true" min="-1" max="100" value="-1" label="Add columns for meta values on protein level which occur with a certain frequency (0-100%)" help="Set to -1 to omit meta values (default)"/> </section> <section name="consensus" title="Options for consensusXML input files" help="" expanded="false"> <param name="sorting_method" argument="-consensus:sorting_method" type="select" optional="false" label="Sorting options can be combined" help="The precedence is: sort_by_size, sort_by_maps, sorting_method"> <option value="none" selected="true">none</option> <option value="RT">RT</option> <option value="MZ">MZ</option> <option value="RT_then_MZ">RT_then_MZ</option> <option value="intensity">intensity</option> <option value="quality_decreasing">quality_decreasing</option> <option value="quality_increasing">quality_increasing</option> <expand macro="list_string_san"/> </param> <param name="sort_by_maps" argument="-consensus:sort_by_maps" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Apply a stable sort by the covered maps, lexicographically" help=""/> <param name="sort_by_size" argument="-consensus:sort_by_size" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Apply a stable sort by decreasing size" help="(i.e., the number of elements)"/> </section> <expand macro="adv_opts_macro"> <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/> <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> <expand macro="list_string_san"/> </param> </expand> <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="false"> <option value="out_FLAG">out (Apply a stable sort by decreasing size)</option> <option value="centroids_FLAG">centroids (Apply a stable sort by decreasing size)</option> <option value="elements_FLAG">elements (Apply a stable sort by decreasing size)</option> <option value="features_FLAG">features (Apply a stable sort by decreasing size)</option> <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> </param> </inputs> <outputs> <data name="out" label="${tool.name} on ${on_string}: out" format="csv"> <filter>OPTIONAL_OUTPUTS is not None and "out_FLAG" in OPTIONAL_OUTPUTS</filter> </data> <data name="consensus_centroids" label="${tool.name} on ${on_string}: consensus:centroids" format="csv"> <filter>OPTIONAL_OUTPUTS is not None and "centroids_FLAG" in OPTIONAL_OUTPUTS</filter> </data> <data name="consensus_elements" label="${tool.name} on ${on_string}: consensus:elements" format="csv"> <filter>OPTIONAL_OUTPUTS is not None and "elements_FLAG" in OPTIONAL_OUTPUTS</filter> </data> <data name="consensus_features" label="${tool.name} on ${on_string}: consensus:features" format="csv"> <filter>OPTIONAL_OUTPUTS is not None and "features_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> <expand macro="autotest_TextExporter"/> <expand macro="manutest_TextExporter"/> </tests> <help><![CDATA[Exports various XML formats to a text file. For more information, visit http://www.openms.de/documentation/TOPP_TextExporter.html]]></help> <expand macro="references"/> </tool>