diff recetox_aplcms_compute_clusters.xml @ 2:ce00e1d03c31 draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 724ecb1b81ebd8a67488b8a9397177b2ff0357db
author recetox
date Wed, 24 May 2023 14:48:47 +0000
parents 092bbb03a217
children 15aae2bfa67d
line wrap: on
line diff
--- a/recetox_aplcms_compute_clusters.xml	Mon Apr 03 14:56:58 2023 +0000
+++ b/recetox_aplcms_compute_clusters.xml	Wed May 24 14:48:47 2023 +0000
@@ -22,42 +22,21 @@
               feature_tables <- feature_tables[ordering]
               sample_names <- sample_names[ordering]
 
-              #if $tolerances_input_method.input_method == "file"
-              tolerances <- load_data_from_parquet_file('$input_tolerances')
-              #end if
-
-              clusters <- compute_clusters(
+              clusters <- compute_clusters_simple(
                   feature_tables = feature_tables,
-                  #if $tolerances_input_method.input_method == "file"
-                  mz_tol_relative = get_mz_tol(tolerances),
-                  rt_tol_relative = get_rt_tol(tolerances),
-                  #else
-                  #if $tolerances_input_method.mz_tol_relative:
-                  mz_tol_relative = $tolerances_input_method.mz_tol_relative,
-                  #else:
-                  mz_tol_relative = NA,
-                  #end if
-                  #if $tolerances_input_method.rt_tol_relative:
-                  rt_tol_relative = $tolerances_input_method.rt_tol_relative,
-                  #else:
-                  rt_tol_relative = NA,
-                  #end if
-                  #end if
-                  mz_max_diff = 10 * $mz_max_diff,
-                  mz_tol_absolute = $mz_tol_absolute,
                   sample_names = sample_names,
-                  do.plot = FALSE
+                  mz_tol_ppm = $mz_tol_relative_ppm,
+                  rt_tol = $rt_tol
               )
 
               save_parquet_collection(clusters, sample_names, "clustered")
-              save_tolerances(clusters, '$tolerances')
          ]]></configfile>
     </configfiles>
 
     <inputs>
         <param name="files" type="data_collection" collection_type="list" format="parquet" label="Input data"
                help="List of tables containing features." />
-        <expand macro="compute_clusters_params"/>
+        <expand macro="tolerances"/>
     </inputs>
 
     <outputs>
@@ -65,7 +44,6 @@
                     label="${tool.name} feature_tables on ${on_string}">
             <discover_datasets pattern="__designation__" directory="clustered" format="parquet" />
         </collection>
-        <data name="tolerances" format="parquet" label="${tool.name} on ${on_string} (updated tolerances)" />
     </outputs>
 
     <tests>