changeset 1:2a5036c29889 draft default tip

planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/squidpy commit ed118f79326f83eff1315f735b4e0e1a45a5e02c
author goeckslab
date Thu, 31 Oct 2024 17:55:09 +0000
parents 5b17a47d1ade
children
files main_macros.xml squidpy_scatter.py
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main_macros.xml	Thu Jul 11 22:22:41 2024 +0000
+++ b/main_macros.xml	Thu Oct 31 17:55:09 2024 +0000
@@ -1,7 +1,7 @@
 <macros>
     <token name="@TOOL_VERSION@">1.5.0</token>
     <token name="@PROFILE@">20.01</token>
-    <token name="@VERSION_SUFFIX@">1</token> 
+    <token name="@VERSION_SUFFIX@">2</token> 
 
     <xml name="macro_stdio">
         <stdio>
--- a/squidpy_scatter.py	Thu Jul 11 22:22:41 2024 +0000
+++ b/squidpy_scatter.py	Thu Oct 31 17:55:09 2024 +0000
@@ -22,10 +22,16 @@
         params = json.load(param_handler)
 
     # collapse param dict hierarchy, parse inputs
+    main_params = ['anndata', 'x_coord', 'y_coord', 'color']
     plot_opts = params.pop('plot_opts')
     legend_opts = params.pop('legend_opts')
     aes_opts = params.pop('aesthetic_opts')
-    options = {**params, **plot_opts, **legend_opts, **aes_opts}
+    options = {
+        **{k: params[k] for k in main_params},
+        **plot_opts,
+        **legend_opts,
+        **aes_opts
+    }
 
     # read input anndata file
     adata_fh = options.pop('anndata')