diff RNAMassCalculator.xml @ 5:148c000ea2ec draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
author galaxyp
date Fri, 14 Jun 2024 21:33:05 +0000
parents cb0f5beef55f
children
line wrap: on
line diff
--- a/RNAMassCalculator.xml	Thu Dec 01 19:20:12 2022 +0000
+++ b/RNAMassCalculator.xml	Fri Jun 14 21:33:05 2024 +0000
@@ -1,6 +1,5 @@
-<?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: [Utilities]-->
+<!--Proposed Tool Section: [RNA]-->
 <tool id="RNAMassCalculator" name="RNAMassCalculator" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
   <description>Calculates masses, mass-to-charge ratios and sum formulas of RNA sequences</description>
   <macros>
@@ -16,7 +15,7 @@
 ## Preprocessing
 #if $in:
   mkdir in &&
-  ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
+  cp '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
 #end if
 #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
   mkdir out &&
@@ -57,10 +56,10 @@
       <expand macro="list_string_val" name="in_seq"/>
       <expand macro="list_string_san" name="in_seq"/>
     </param>
-    <param argument="-charge" type="text" optional="true" value="0" label="List of charge states; required if 'in_seq' is given" help=" (space separated list, in order to allow for spaces in list items surround them by single quotes)">
+    <param argument="-charge" type="text" value="0" label="List of charge states; required if 'in_seq' is given" help=" (space separated list, in order to allow for spaces in list items surround them by single quotes)">
       <expand macro="list_integer_valsan" name="charge"/>
     </param>
-    <param argument="-format" type="select" optional="true" label="Output format ('list': human-readable list, 'table': CSV-like table, 'mass_only': mass values only, 'mz_only': m/z values only, 'formula_only': sum formula only)" help="">
+    <param argument="-format" type="select" label="Output format ('list': human-readable list, 'table': CSV-like table, 'mass_only': mass values only, 'mz_only': m/z values only, 'formula_only': sum formula only)" help="">
       <option value="list" selected="true">list</option>
       <option value="table">table</option>
       <option value="mass_only">mass_only</option>
@@ -69,7 +68,7 @@
       <expand macro="list_string_san" name="format"/>
     </param>
     <param argument="-average_mass" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Compute average (instead of monoisotopic) oligonucleotide masses" help=""/>
-    <param argument="-fragment_type" type="select" optional="true" label="For what type of sequence/fragment the mass should be computed" help="">
+    <param argument="-fragment_type" type="select" label="For what type of sequence/fragment the mass should be computed" help="">
       <option value="full" selected="true">full</option>
       <option value="internal">internal</option>
       <option value="5-prime">5-prime</option>
@@ -90,7 +89,7 @@
     </param>
     <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="">
+      <param argument="-test" type="hidden" value="False" label="Enables the test mode (needed for internal use only)" help="" optional="true">
         <expand macro="list_string_san" name="test"/>
       </param>
     </expand>
@@ -110,14 +109,15 @@
       <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
     </data>
   </outputs>
-  <tests><!-- UTILS_RNAMassCalculator_1 -->
+  <tests>
+    <!-- TOPP_RNAMassCalculator_1 -->
     <test expect_num_outputs="2">
       <section name="adv_opts">
         <param name="force" value="false"/>
         <param name="test" value="true"/>
       </section>
       <param name="in_seq" value="&quot;AUCGGC&quot;"/>
-      <output name="out" file="RNAMassCalculator_1.txt" compare="sim_size" delta_frac="0.7" ftype="txt"/>
+      <output name="out" value="RNAMassCalculator_1.txt" compare="sim_size" delta_frac="0.7" ftype="txt"/>
       <param name="charge" value="-1 -2"/>
       <param name="format" value="list"/>
       <param name="average_mass" value="false"/>
@@ -129,11 +129,14 @@
           <is_valid_xml/>
         </assert_contents>
       </output>
+      <assert_stdout>
+        <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/>
+      </assert_stdout>
     </test>
   </tests>
   <help><![CDATA[Calculates masses, mass-to-charge ratios and sum formulas of RNA sequences
 
 
-For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/UTILS_RNAMassCalculator.html]]></help>
+For more information, visit https://openms.de/doxygen/release/3.1.0/html/TOPP_RNAMassCalculator.html]]></help>
   <expand macro="references"/>
 </tool>