changeset 5:d55a7181895c draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 58476cadaaf10b494317a604ad81d41c2d15f29b
author galaxyp
date Mon, 12 Feb 2018 12:55:30 -0500
parents 4d26f6100cae
children f01f84cbd265
files OpenSwathRTNormalizer.xml SKIP_TOOLS_FILE.txt macros.xml readme.md tools_blacklist.txt
diffstat 5 files changed, 59 insertions(+), 55 deletions(-) [+]
line wrap: on
line diff
--- a/OpenSwathRTNormalizer.xml	Thu Jan 11 17:36:26 2018 -0500
+++ b/OpenSwathRTNormalizer.xml	Mon Feb 12 12:55:30 2018 -0500
@@ -1,7 +1,7 @@
 <?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 CTD2Galaxy.-->
+<!--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: [Targeted Experiments]-->
-<tool id="OpenSwathRTNormalizer" name="OpenSwathRTNormalizer" version="2.2.0">
+<tool id="OpenSwathRTNormalizer" name="OpenSwathRTNormalizer" version="2.3.0">
   <description>This tool will take a description of RT peptides and their normalized retention time to write out a transformation file on how to transform the RT space into the normalized space.</description>
   <macros>
     <token name="@EXECUTABLE@">OpenSwathRTNormalizer</token>
@@ -34,6 +34,26 @@
 #if $param_estimateBestPeptides:
   -estimateBestPeptides
 #end if
+#if $param_RTNormalization_outlierMethod:
+  -RTNormalization:outlierMethod
+  #if " " in str($param_RTNormalization_outlierMethod):
+    "$param_RTNormalization_outlierMethod"
+  #else
+    $param_RTNormalization_outlierMethod
+  #end if
+#end if
+#if $param_RTNormalization_useIterativeChauvenet:
+  -RTNormalization:useIterativeChauvenet
+#end if
+#if $param_RTNormalization_RANSACMaxIterations:
+  -RTNormalization:RANSACMaxIterations $param_RTNormalization_RANSACMaxIterations
+#end if
+#if $param_RTNormalization_RANSACMaxPercentRTThreshold:
+  -RTNormalization:RANSACMaxPercentRTThreshold $param_RTNormalization_RANSACMaxPercentRTThreshold
+#end if
+#if $param_RTNormalization_RANSACSamplingSize:
+  -RTNormalization:RANSACSamplingSize $param_RTNormalization_RANSACSamplingSize
+#end if
 #if $param_algorithm_stop_report_after_feature:
   -algorithm:stop_report_after_feature $param_algorithm_stop_report_after_feature
 #end if
@@ -124,26 +144,6 @@
 #if $param_algorithm_DIAScoring_peak_before_mono_max_ppm_diff:
   -algorithm:DIAScoring:peak_before_mono_max_ppm_diff $param_algorithm_DIAScoring_peak_before_mono_max_ppm_diff
 #end if
-#if $param_outlierDetection_outlierMethod:
-  -outlierDetection:outlierMethod
-  #if " " in str($param_outlierDetection_outlierMethod):
-    "$param_outlierDetection_outlierMethod"
-  #else
-    $param_outlierDetection_outlierMethod
-  #end if
-#end if
-#if $param_outlierDetection_useIterativeChauvenet:
-  -outlierDetection:useIterativeChauvenet
-#end if
-#if $param_outlierDetection_RANSACMaxIterations:
-  -outlierDetection:RANSACMaxIterations $param_outlierDetection_RANSACMaxIterations
-#end if
-#if $param_outlierDetection_RANSACMaxPercentRTThreshold:
-  -outlierDetection:RANSACMaxPercentRTThreshold $param_outlierDetection_RANSACMaxPercentRTThreshold
-#end if
-#if $param_outlierDetection_RANSACSamplingSize:
-  -outlierDetection:RANSACSamplingSize $param_outlierDetection_RANSACSamplingSize
-#end if
 #if $param_peptideEstimation_InitialQualityCutoff:
   -peptideEstimation:InitialQualityCutoff $param_peptideEstimation_InitialQualityCutoff
 #end if
@@ -198,6 +198,9 @@
     #if $adv_opts.param_algorithm_TransitionGroupPicker_minimal_quality:
   -algorithm:TransitionGroupPicker:minimal_quality $adv_opts.param_algorithm_TransitionGroupPicker_minimal_quality
 #end if
+    #if $adv_opts.param_algorithm_TransitionGroupPicker_resample_boundary:
+  -algorithm:TransitionGroupPicker:resample_boundary $adv_opts.param_algorithm_TransitionGroupPicker_resample_boundary
+#end if
     #if $adv_opts.param_algorithm_TransitionGroupPicker_compute_peak_quality:
   -algorithm:TransitionGroupPicker:compute_peak_quality
 #end if
@@ -324,6 +327,16 @@
     <param name="param_min_rsq" type="float" value="0.95" label="Minimum r-squared of RT peptides regression" help="(-min_rsq) "/>
     <param name="param_min_coverage" type="float" value="0.6" label="Minimum relative amount of RT peptides to keep" help="(-min_coverage) "/>
     <param name="param_estimateBestPeptides" display="radio" type="boolean" truevalue="-estimateBestPeptides" falsevalue="" checked="false" optional="True" label="Whether the algorithms should try to choose the best peptides based on their peak shape for normalization. Use this option you do not expect all your peptides to be detected in a sample and too many 'bad' peptides enter the outlier removal step (" help="(-estimateBestPeptides) e.g. due to them being endogenous peptides or using a less curated list of peptides)"/>
+    <param name="param_RTNormalization_outlierMethod" display="radio" type="select" optional="False" value="iter_residual" label="Which outlier detection method to use (valid: 'iter_residual', 'iter_jackknife', 'ransac', 'none')" help="(-outlierMethod) Iterative methods remove one outlier at a time. Jackknife approach optimizes for maximum r-squared improvement while 'iter_residual' removes the datapoint with the largest residual error (removal by residual is computationally cheaper, use this with lots of peptides)">
+      <option value="iter_residual" selected="true">iter_residual</option>
+      <option value="iter_jackknife">iter_jackknife</option>
+      <option value="ransac">ransac</option>
+      <option value="none">none</option>
+    </param>
+    <param name="param_RTNormalization_useIterativeChauvenet" display="radio" type="boolean" truevalue="-RTNormalization:useIterativeChauvenet" falsevalue="" checked="false" optional="True" label="Whether to use Chauvenet's criterion when using iterative methods" help="(-useIterativeChauvenet) This should be used if the algorithm removes too many datapoints but it may lead to true outliers being retained"/>
+    <param name="param_RTNormalization_RANSACMaxIterations" type="integer" value="1000" label="Maximum iterations for the RANSAC outlier detection algorithm" help="(-RANSACMaxIterations) "/>
+    <param name="param_RTNormalization_RANSACMaxPercentRTThreshold" type="integer" value="3" label="Maximum threshold in RT dimension for the RANSAC outlier detection algorithm (in percent of the total gradient)" help="(-RANSACMaxPercentRTThreshold) Default is set to 3% which is around +/- 4 minutes on a 120 gradient"/>
+    <param name="param_RTNormalization_RANSACSamplingSize" type="integer" value="10" label="Sampling size of data points per iteration for the RANSAC outlier detection algorithm" help="(-RANSACSamplingSize) "/>
     <param name="param_algorithm_stop_report_after_feature" type="integer" value="-1" label="Stop reporting after feature (ordered by quality; -1 means do not stop)" help="(-stop_report_after_feature) "/>
     <param name="param_algorithm_rt_extraction_window" type="float" value="-1.0" label="Only extract RT around this value (-1 means extract over the whole range, a value of 500 means to extract around +/- 500 s of the expected elution)" help="(-rt_extraction_window) For this to work, the TraML input file needs to contain normalized RT values"/>
     <param name="param_algorithm_rt_normalization_factor" type="float" value="1.0" label="The normalized RT is expected to be between 0 and 1. If your normalized RT has a different range, pass this here (" help="(-rt_normalization_factor) e.g. it goes from 0 to 100, set this value to 100)"/>
@@ -338,7 +351,7 @@
       <option value="false">false</option>
       <option value="true" selected="true">true</option>
     </param>
-    <param name="param_algorithm_TransitionGroupPicker_PeakPickerMRM_peak_width" type="float" value="40.0" label="Force a certain minimal peak_width on the data (" help="(-peak_width) e.g. extend the peak at least by this amount on both sides) in seconds. -1 turns this feature off"/>
+    <param name="param_algorithm_TransitionGroupPicker_PeakPickerMRM_peak_width" type="float" value="-1.0" label="Force a certain minimal peak_width on the data (" help="(-peak_width) e.g. extend the peak at least by this amount on both sides) in seconds. -1 turns this feature off"/>
     <param name="param_algorithm_TransitionGroupPicker_PeakPickerMRM_signal_to_noise" type="float" min="0.0" optional="True" value="1.0" label="Signal-to-noise threshold at which a peak will not be extended any more. Note that setting this too high (" help="(-signal_to_noise) e.g. 1.0) can lead to peaks whose flanks are not fully captured"/>
     <param name="param_algorithm_TransitionGroupPicker_PeakPickerMRM_sn_win_len" type="float" value="1000.0" label="Signal to noise window length" help="(-sn_win_len) "/>
     <param name="param_algorithm_TransitionGroupPicker_PeakPickerMRM_sn_bin_count" type="integer" value="30" label="Signal to noise bin count" help="(-sn_bin_count) "/>
@@ -347,9 +360,9 @@
       <option value="false">false</option>
     </param>
     <param name="param_algorithm_TransitionGroupPicker_PeakPickerMRM_remove_overlapping_peaks" display="radio" type="boolean" truevalue="-algorithm:TransitionGroupPicker:PeakPickerMRM:remove_overlapping_peaks" falsevalue="" checked="false" optional="True" label="Try to remove overlapping peaks during peak picking" help="(-remove_overlapping_peaks) "/>
-    <param name="param_algorithm_TransitionGroupPicker_PeakPickerMRM_method" display="radio" type="select" optional="False" value="legacy" label="Which method to choose for chromatographic peak-picking (OpenSWATH legacy, corrected picking or Crawdad)" help="(-method) ">
-      <option value="legacy" selected="true">legacy</option>
-      <option value="corrected">corrected</option>
+    <param name="param_algorithm_TransitionGroupPicker_PeakPickerMRM_method" display="radio" type="select" optional="False" value="corrected" label="Which method to choose for chromatographic peak-picking (OpenSWATH legacy on raw data, corrected picking on smoothed chromatogram or Crawdad on smoothed chromatogram)" help="(-method) ">
+      <option value="legacy">legacy</option>
+      <option value="corrected" selected="true">corrected</option>
       <option value="crawdad">crawdad</option>
     </param>
     <param name="param_algorithm_DIAScoring_dia_extraction_window" type="float" min="0.0" optional="True" value="0.05" label="DIA extraction window in Th" help="(-dia_extraction_window) "/>
@@ -359,16 +372,6 @@
     <param name="param_algorithm_DIAScoring_dia_nr_isotopes" type="integer" min="0" optional="True" value="4" label="DIA nr of isotopes to conside" help="(-dia_nr_isotopes) "/>
     <param name="param_algorithm_DIAScoring_dia_nr_charges" type="integer" min="0" optional="True" value="4" label="DIA nr of charges to conside" help="(-dia_nr_charges) "/>
     <param name="param_algorithm_DIAScoring_peak_before_mono_max_ppm_diff" type="float" min="0.0" optional="True" value="20.0" label="DIA maximal difference in ppm to count a peak at lower m/z when searching for evidence that a peak might not be monoisotopic" help="(-peak_before_mono_max_ppm_diff) "/>
-    <param name="param_outlierDetection_outlierMethod" display="radio" type="select" optional="False" value="iter_residual" label="Which outlier detection method to use (valid: 'iter_residual', 'iter_jackknife', 'ransac', 'none')" help="(-outlierMethod) Iterative methods remove one outlier at a time. Jackknife approach optimizes for maximum r-squared improvement while 'iter_residual' removes the datapoint with the largest residual error (removal by residual is computationally cheaper, use this with lots of peptides)">
-      <option value="iter_residual" selected="true">iter_residual</option>
-      <option value="iter_jackknife">iter_jackknife</option>
-      <option value="ransac">ransac</option>
-      <option value="none">none</option>
-    </param>
-    <param name="param_outlierDetection_useIterativeChauvenet" display="radio" type="boolean" truevalue="-outlierDetection:useIterativeChauvenet" falsevalue="" checked="false" optional="True" label="Whether to use Chauvenet's criterion when using iterative methods" help="(-useIterativeChauvenet) This should be used if the algorithm removes too many datapoints but it may lead to true outliers being retained"/>
-    <param name="param_outlierDetection_RANSACMaxIterations" type="integer" value="1000" label="Maximum iterations for the RANSAC outlier detection algorithm" help="(-RANSACMaxIterations) "/>
-    <param name="param_outlierDetection_RANSACMaxPercentRTThreshold" type="integer" value="3" label="Maximum threshold in RT dimension for the RANSAC outlier detection algorithm (in percent of the total gradient)" help="(-RANSACMaxPercentRTThreshold) Default is set to 3% which is around +/- 4 minutes on a 120 gradient"/>
-    <param name="param_outlierDetection_RANSACSamplingSize" type="integer" value="10" label="Sampling size of data points per iteration for the RANSAC outlier detection algorithm" help="(-RANSACSamplingSize) "/>
     <param name="param_peptideEstimation_InitialQualityCutoff" type="float" value="0.5" label="The initial overall quality cutoff for a peak to be scored (range ca" help="(-InitialQualityCutoff) -2 to 2)"/>
     <param name="param_peptideEstimation_OverallQualityCutoff" type="float" value="5.5" label="The overall quality cutoff for a peak to go into the retention time estimation (range ca" help="(-OverallQualityCutoff) 0 to 10)"/>
     <param name="param_peptideEstimation_NrRTBins" type="integer" value="10" label="Number of RT bins to use to compute coverage" help="(-NrRTBins) This option should be used to ensure that there is a complete coverage of the RT space (this should detect cases where only a part of the RT gradient is actually covered by normalization peptides)"/>
@@ -390,6 +393,7 @@
       <param name="param_algorithm_TransitionGroupPicker_use_precursors" display="radio" type="boolean" truevalue="-algorithm:TransitionGroupPicker:use_precursors" falsevalue="" checked="false" optional="True" label="Use precursor chromatogram for peak picking" help="(-use_precursors) "/>
       <param name="param_algorithm_TransitionGroupPicker_recalculate_peaks_max_z" type="float" value="1.0" label="Determines the maximal Z-Score (difference measured in standard deviations) that is considered too large for peak boundaries" help="(-recalculate_peaks_max_z) If the Z-Score is above this value, the median is used for peak boundaries (default value 1.0)"/>
       <param name="param_algorithm_TransitionGroupPicker_minimal_quality" type="float" value="-10000.0" label="Only if compute_peak_quality is set, this parameter will not consider peaks below this quality threshold" help="(-minimal_quality) "/>
+      <param name="param_algorithm_TransitionGroupPicker_resample_boundary" type="float" value="15.0" label="For computing peak quality, how many extra seconds should be sample left and right of the actual peak" help="(-resample_boundary) "/>
       <param name="param_algorithm_TransitionGroupPicker_compute_peak_quality" display="radio" type="boolean" truevalue="-algorithm:TransitionGroupPicker:compute_peak_quality" falsevalue="" checked="false" optional="True" label="Tries to compute a quality value for each peakgroup and detect outlier transitions" help="(-compute_peak_quality) The resulting score is centered around zero and values above 0 are generally good and below -1 or -2 are usually bad"/>
       <param name="param_algorithm_EMGScoring_interpolation_step" type="float" value="0.2" label="Sampling rate for the interpolation of the model function" help="(-interpolation_step) "/>
       <param name="param_algorithm_EMGScoring_tolerance_stdev_bounding_box" type="float" value="3.0" label="Bounding box has range [minimim of data, maximum of data] enlarged by tolerance_stdev_bounding_box times the standard deviation of the data" help="(-tolerance_stdev_bounding_box) "/>
--- a/SKIP_TOOLS_FILE.txt	Thu Jan 11 17:36:26 2018 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-OMSSAAdapter
-MyriMatchAdapter
-PepNovoAdapter
-SeedListGenerator
-SpecLibSearcher
-MapAlignerIdentification
-MapAlignerPoseClustering
-MapAlignerSpectrum
-MapAlignerRTTransformer
--- a/macros.xml	Thu Jan 11 17:36:26 2018 -0500
+++ b/macros.xml	Mon Feb 12 12:55:30 2018 -0500
@@ -2,10 +2,10 @@
 <macros>
   <xml name="requirements">
     <requirements>
-      <requirement type="package" version="2.2">openms</requirement>
+      <requirement type="package" version="2.3">openms</requirement>
       <requirement type="package" version="15.12.15.2">xtandem</requirement>
       <requirement type="package" version="1.0">fido</requirement>
-      <requirement type="package" version="2016.10.26">msgf_plus</requirement>
+      <requirement type="package" version="2017.07.21">msgf_plus</requirement>
       <yield/>
     </requirements>
   </xml>
--- a/readme.md	Thu Jan 11 17:36:26 2018 -0500
+++ b/readme.md	Mon Feb 12 12:55:30 2018 -0500
@@ -53,29 +53,29 @@
  * clone or install CTD2Galaxy
 
     ```bash
-    git clone https://github.com/WorkflowConversion/CTD2Galaxy.git
+    git clone https://github.com/WorkflowConversion/CTDConverter.git
     ```
     
- * If you have CTDopts and CTD2Galaxy installed you are ready to generate Galaxy Tools from CTD definitions. Change the following command according to your needs, especially the `/PATH/TO` parts. The default files are provided in this repository. You might have to install `libxslt` and `lxml` to run it.
+ * If you have CTDopts and CTDConverter installed you are ready to generate Galaxy Tools from CTD definitions. Change the following command according to your needs, especially the `/PATH/TO` parts. The default files are provided in this repository. You might have to install `libxslt` and `lxml` to run it. Further information can be found on the CTDConverter page.
 
     ```bash
-    python generator.py \ 
+    python convert.py galaxy \ 
     -i /PATH/TO/YOUR/CTD/*.ctd \
     -o ./PATH/TO/YOUR/WRAPPERS/ -t tool.conf \
     -d datatypes_conf.xml -g openms \
     -b version log debug test no_progress threads \
      in_type executable myrimatch_executable \
      fido_executable fidocp_executable \
-     omssa_executable pepnovo_executable \
+     omssa_executable pepnovo_e xecutable \
      xtandem_executable param_model_directory \
      java_executable java_memory java_permgen \
      r_executable rt_concat_trafo_out param_id_pool \
     -f /PATH/TO/filetypes.txt -m /PATH/TO/macros.xml \
-    -s PATH/TO/SKIP_TOOLS_FILES.txt
+    -s PATH/TO/tools_blacklist.txt
     ```
 
 
- * As last step you need to change manually the binary names of all external binaries you want to use in OpenMS. For example:
+ * As last step you need to change manually the binary names of all external binaries you want to use in OpenMS. Some of these tools might already be deprecated and the files might not exist:
 
     ```
     sed -i '13 a\-fido_executable Fido' wrappers/FidoAdapter.xml
@@ -171,8 +171,8 @@
     ```
     
 
- * These tools have multiple outputs (number of inputs = number of outputs) which is not yet supported in
-   by the automatic conversion step and are therefore in `SKIP_TOOLS_FILES.txt`:
+ * `This section might not be up to date. It might be worth trying if these tools will run now.` These tools have multiple outputs (number of inputs = number of outputs) which is not yet supported in
+   by the automatic conversion step and are therefore in `tools_blacklist.txt`:
     * SeedListGenerator
     * SpecLibSearcher
     * MapAlignerIdentification
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools_blacklist.txt	Mon Feb 12 12:55:30 2018 -0500
@@ -0,0 +1,9 @@
+OMSSAAdapter
+MyriMatchAdapter
+PepNovoAdapter
+SeedListGenerator
+SpecLibSearcher
+MapAlignerIdentification
+MapAlignerPoseClustering
+MapAlignerSpectrum
+MapAlignerRTTransformer