view ProteinInference.xml @ 16:98145f5e7953 draft default tip

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 2adf8edc3de4e1cd3b299b26abb14544d17d0636"
author galaxyp
date Fri, 06 Nov 2020 19:13:07 +0000
parents f41b28089c9c
children
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: [Identification]-->
<tool id="ProteinInference" name="ProteinInference" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
  <description>Protein inference based on an aggregation of the scores of the identified peptides.</description>
  <macros>
    <token name="@EXECUTABLE@">ProteinInference</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 &&
${ ' '.join(["ln -s '%s' 'in/%s.%s' &&" % (_, re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _]) }
mkdir out &&

## 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
${' '.join(["'in/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _])}
-out
'out/output.${gxy2omsext("idxml")}'

## Postprocessing
&& mv 'out/output.${gxy2omsext("idxml")}' '$out'
#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="idxml" multiple="true" optional="false" label="input file(s)" help=" select idxml data sets(s)"/>
    <param name="merge_runs" argument="-merge_runs" display="radio" type="select" optional="false" label="If your idXML contains multiple runs, merge them beforehand?" help="">
      <option value="no" selected="true">no</option>
      <option value="all">all</option>
      <expand macro="list_string_san"/>
    </param>
    <param name="annotate_indist_groups" argument="-annotate_indist_groups" type="boolean" truevalue="true" falsevalue="false" checked="true" label="If you want to annotate indistinguishable protein groups, either for reporting or for group based quant" help="later. Only works with a single ID run in the file"/>
    <section name="Merging" title="" help="" expanded="false">
      <param name="annotate_origin" argument="-Merging:annotate_origin" type="boolean" truevalue="true" falsevalue="false" checked="true" label="If true, adds a map_index MetaValue to the PeptideIDs to annotate the IDRun they came from" help=""/>
      <param name="allow_disagreeing_settings" argument="-Merging:allow_disagreeing_settings" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Force merging of disagreeing runs" help="Use at your own risk"/>
    </section>
    <section name="Algorithm" title="" help="" expanded="false">
      <param name="min_peptides_per_protein" argument="-Algorithm:min_peptides_per_protein" type="integer" optional="true" min="0" value="1" label="Minimal number of peptides needed for a protein identification" help="If set to zero, unmatched proteins get a score of -Infinity. If bigger than zero, proteins with less peptides are filtered and evidences removed from the PSMs. PSMs that do not reference any proteins anymore are removed but the spectrum info is kept"/>
      <param name="score_aggregation_method" argument="-Algorithm:score_aggregation_method" display="radio" type="select" optional="false" label="How to aggregate scores of peptides matching to the same protein?" help="">
        <option value="maximum" selected="true">maximum</option>
        <option value="product">product</option>
        <option value="sum">sum</option>
        <expand macro="list_string_san"/>
      </param>
      <param name="treat_charge_variants_separately" argument="-Algorithm:treat_charge_variants_separately" type="text" optional="true" value="true" label="If this is set, different charge variants of the same peptide sequence count as individual evidences" help="">
        <expand macro="list_string_san"/>
      </param>
      <param name="treat_modification_variants_separately" argument="-Algorithm:treat_modification_variants_separately" type="text" optional="true" value="true" label="If this is set, different modification variants of the same peptide sequence count as individual evidences" help="">
        <expand macro="list_string_san"/>
      </param>
      <param name="use_shared_peptides" argument="-Algorithm:use_shared_peptides" type="text" optional="true" value="true" label="If this is set, shared peptides are used as evidences" help="">
        <expand macro="list_string_san"/>
      </param>
      <param name="skip_count_annotation" argument="-Algorithm:skip_count_annotation" type="text" optional="true" value="false" label="If this is true, peptide counts won't be annotated at the proteins" help="">
        <expand macro="list_string_san"/>
      </param>
    </section>
    <expand macro="adv_opts_macro">
      <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides 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" optional="true" multiple="true" label="Optional outputs">
      <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="idxml"/>
    <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_ProteinInference"/>
    <expand macro="manutest_ProteinInference"/>
  </tests>
  <help><![CDATA[Protein inference based on an aggregation of the scores of the identified peptides.


For more information, visit http://www.openms.de/doxygen/release/2.6.0/html/TOPP_ProteinInference.html]]></help>
  <expand macro="references"/>
</tool>