diff squidpy_scatter.py @ 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
line wrap: on
line diff
--- 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')