diff macros.xml @ 4:16c64719226c draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/DIMet commit afc87f0254b4399b71e53735966032ba1a32434d
author iuc
date Wed, 27 Mar 2024 16:50:32 +0000
parents b761f919732d
children 89ca62980a2e
line wrap: on
line diff
--- a/macros.xml	Mon Mar 04 20:01:33 2024 +0000
+++ b/macros.xml	Wed Mar 27 16:50:32 2024 +0000
@@ -1,5 +1,5 @@
 <macros>
-    <token name="@TOOL_VERSION@">0.2.2</token>
+    <token name="@TOOL_VERSION@">0.2.4</token>
     <token name="@VERSION_SUFFIX@">1</token>
     <token name="@EXECUTABLE@">pca</token>
     <xml name="requirements">
@@ -12,6 +12,12 @@
             <option value="KW">Kruskal-Wallis</option>
         </param>
     </xml>
+     <xml name="statistical_test_for_bivariate_analysis">
+        <param name="stat_test" type="select" value="pearson"  display="radio" label="Select statistical to apply" help="Please enter at max 1 statistical test by file">
+            <option value="pearson">pearson</option>
+            <option value="spearman">spearman</option>
+        </param>
+    </xml>
     <xml name="statistical_test">
         <conditional name="statistics">
             <param name="statistical_test_type" type="select" label="Choose which type of statistical test to perform" help="Choose which type of statistical test to perform">
@@ -166,6 +172,7 @@
             </when>
         </conditional>
         <expand macro="metadata_file_macros"/>
+        <expand macro="statistical_test_for_bivariate_analysis"/>
     </xml>
     <xml name="input_parameters_diff_analysis">
         <conditional name="data_input">
@@ -638,14 +645,23 @@
     #if $metadata_path:
         ln -s '$metadata_path' data/metadata.csv &&
     #end if
+
+
     #set conditions_MDV_comparison  = {}
-    #silent $conditions_MDV_comparison['isotopologue_proportions']='pearson'
     #set timepoints_MDV_comparison  = {}
-    #silent $timepoints_MDV_comparison['isotopologue_proportions']='pearson'
     #set conditions_metabolite_time_profiles  = {}
-    #silent $conditions_metabolite_time_profiles['abundances']='pearson'
-    #silent $conditions_metabolite_time_profiles['mean_enrichment']='pearson'
 
+    #if str( $stat_test ) == "pearson":
+        #silent $conditions_MDV_comparison['isotopologue_proportions']='pearson'
+        #silent $timepoints_MDV_comparison['isotopologue_proportions']='pearson'
+        #silent $conditions_metabolite_time_profiles['abundances']='pearson'
+        #silent $conditions_metabolite_time_profiles['mean_enrichment']='pearson'
+    #else
+        #silent $conditions_MDV_comparison['isotopologue_proportions']='spearman'
+        #silent $timepoints_MDV_comparison['isotopologue_proportions']='spearman'
+        #silent $conditions_metabolite_time_profiles['abundances']='spearman'
+        #silent $conditions_metabolite_time_profiles['mean_enrichment']='spearman'
+    #end if
     #set $impute_values  = {}
     #if str( $data_input.data_input_selector ) == "abundance":
         #if $data_input.abundance_file: