Repository 'scanpy_find_cluster'
hg clone https://toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_find_cluster

Changeset 17:b45b85d5c7ec (2020-09-29)
Previous changeset 16:5e68e130fafe (2020-09-17) Next changeset 18:15e8a4c60418 (2020-09-30)
Commit message:
"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/tertiary-analysis/scanpy commit c02d457c74016980672e64832e6cad31d703edcd-dirty"
modified:
scanpy-find-cluster.xml
b
diff -r 5e68e130fafe -r b45b85d5c7ec scanpy-find-cluster.xml
--- a/scanpy-find-cluster.xml Thu Sep 17 16:24:22 2020 +0000
+++ b/scanpy-find-cluster.xml Tue Sep 29 14:07:52 2020 +0000
[
@@ -1,14 +1,15 @@
 <?xml version="1.0" encoding="utf-8"?>
-<tool id="scanpy_find_cluster" name="Scanpy FindCluster" version="@TOOL_VERSION@+galaxy1" profile="@PROFILE@">
+<tool id="scanpy_find_cluster" name="Scanpy FindCluster" version="@TOOL_VERSION@+galaxy2" profile="@PROFILE@">
   <description>based on community detection on KNN graph</description>
   <macros>
     <import>scanpy_macros2.xml</import>
   </macros>
   <expand macro="requirements"/>
   <command detect_errors="exit_code"><![CDATA[
-#from pathlib import Path
 #if $settings.resolution_file
-    #set resolution = Path($settings.resolution_file.__str__).read_text().strip()
+    #set f = open($settings.resolution_file.__str__)
+    #set resolution = f.read().strip()
+    #silent f.close
 #elif $settings.resolution
     #set resolution = $settings.resolution.__str__.strip()
 #end if
@@ -95,6 +96,17 @@
       <param name="output_format" value="anndata"/>
       <param name="output_txt" value="true"/>
       <param name="default" value="false"/>
+      <param name="resolution_file" value="resolution.txt"/>
+      <param name="random_seed" value="0"/>
+      <output name="output_h5" file="find_cluster.h5" ftype="h5" compare="sim_size"/>
+      <output name="output_txt" file="find_cluster.tsv" ftype="tsv"/>
+    </test>
+    <test>
+      <param name="input_obj_file" value="compute_graph.h5"/>
+      <param name="input_format" value="anndata"/>
+      <param name="output_format" value="anndata"/>
+      <param name="output_txt" value="true"/>
+      <param name="default" value="false"/>
       <param name="resolution" value="1.0"/>
       <param name="random_seed" value="0"/>
       <output name="output_h5" file="find_cluster.h5" ftype="h5" compare="sim_size"/>