diff msp_split.xml @ 5:f2683ec717fe draft default tip

planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit a164f06c09dc1614c2909c247ebf390aab433527-dirty
author tomnl
date Wed, 18 Sep 2019 05:46:09 -0400
parents a91e186cf294
children
line wrap: on
line diff
--- a/msp_split.xml	Wed Jul 18 06:04:14 2018 -0400
+++ b/msp_split.xml	Wed Sep 18 05:46:09 2019 -0400
@@ -1,34 +1,31 @@
-<tool id="msp_split" name="msp_split" version="0.0.1">
+<tool id="msp_split" name="msp_split" version="0.0.2">
     <description>Slit MSP file into n number of files</description>
-    <macros>
-        <import>macros.xml</import>
-    </macros>
-        
+
     <stdio>
         <exit_code range="1:" />
     </stdio>
-    <command interpreter="python"><![CDATA[  msp_split.py -i $in_msp -o 'spec_out' -n $n  ]]></command>
+    <command interpreter="python"><![CDATA[  msp_split.py -i $in_msp -o 'spec_out' -n $n -x $x ]]></command>
 
     <inputs>
         <param name="in_msp" type="data" label="Input MSP file" format="txt,msp" help='MSP file (must have NAME: as the first element in each spectra entry'/>
         <param name="n" type="integer" label="Number of new files" value="2"
-                    help="Number of new MSP files to split the original MSP file into"/>
-
+               help="Number of new MSP files to split the original MSP file into"/>
+        <param name="x" type="text" label="Starting parameter for each spectra" value="RECORD_TITLE:"
+               help="Parameter in the MSP file that indicates the start of a each spectra"/>
     </inputs>
     <outputs>
-       <collection name="multiple" type="list" label="${tool.name} on ${on_string}: multi msp files">
+        <collection name="multiple" type="list" label="${tool.name} on ${on_string}: multi msp files">
             <discover_datasets pattern="__designation_and_ext__" ext='msp' directory="spec_out" format='msp' />
-       </collection>
+        </collection>
     </outputs>
     <tests>
-       <test>
+        <test>
             <param name="in_msp" value="input.msp"/>
             <output_collection name="multiple" type="list">
                 <element name="file1" file="file01.msp" ftype="msp"/>
                 <element name="file2" file="file02.msp" ftype="msp"/>
             </output_collection>
-      </test>
-
+        </test>
     </tests>
     <help><![CDATA[
 =============================================================
@@ -37,7 +34,9 @@
 Split a MSP file into n MSP files. Where the the spectra will be divided between n files.
 
     ]]></help>
-    
-<expand macro="citations" />
-    
+
+ <citations>
+           <!-- <citation type="doi">10.1021/acs.analchem.6b04358</citation> -->
+ </citations>
+
 </tool>