diff scanpy-filter-genes.xml @ 3:77fbe74247c2 draft

planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/tertiary-analysis/scanpy commit ccd9b839849600b1aa3b6cf54f667575a5f2da9d
author ebi-gxa
date Fri, 25 Oct 2019 08:21:35 -0400
parents a797a810d7e9
children fa6c08064fc1
line wrap: on
line diff
--- a/scanpy-filter-genes.xml	Tue Oct 22 08:01:01 2019 -0400
+++ b/scanpy-filter-genes.xml	Fri Oct 25 08:21:35 2019 -0400
@@ -9,15 +9,15 @@
 ln -s '${input_obj_file}' input.h5 &&
 PYTHONIOENCODING=utf-8 scanpy-filter-genes
 #if $parameters
-    #set pars = ' '.join(['--param {name} {min} {max}'.format(**$p) for $p in $parameters])
+    #set pars = ' '.join(['--param g:{name} {min} {max}'.format(**$p) for $p in $parameters])
     ${pars}
 #end if
 #if $categories
-    #set cats = ' '.join(['--category {name} {values}'.format(**$c) for $c in $categories])
+    #set cats = ' '.join(['--category g:{name} {values}'.format(**$c) for $c in $categories])
     ${cats}
 #end if
 #if $subsets
-    #set subs = ' '.join(['--subsets {name} {subset}'.format(**$s) for $s in $subsets])
+    #set subs = ' '.join(['--subset g:{name} {subset}'.format(**$s) for $s in $subsets])
     ${subs}
 #end if
     @INPUT_OPTS@
@@ -28,10 +28,10 @@
     <expand macro="input_object_params"/>
     <expand macro="output_object_params"/>
 
-    <repeat name="parameters" title="Parameters used to filter cells" min="1">
+    <repeat name="parameters" title="Parameters used to filter genes" min="1">
       <param name="name" type="text" value="n_cells" label="Name of parameter to filter on" help="for example n_genes or n_counts">
         <option value="n_cells">n_cells</option>
-        <option value="gene:n_counts">n_counts</option>
+        <option value="n_counts">n_counts</option>
       </param>
       <param name="min" type="float" min="0" value="0" label="Min value"/>
       <param name="max" type="float" min="0" value="1e9" label="Max value"/>
@@ -39,12 +39,12 @@
 
     <repeat name="categories" title="Categories used to filter genes" min="0">
       <param name="name" type="text" value="" label="Name of the categorical variable to filter on"/>
-      <param name="values" type="text" value="" label="Comma-separated values"/>
+      <param name="values" type="text" value="" label="Comma-separated values to keep"/>
     </repeat>
 
     <repeat name="subsets" title="Subsets used to filter genes" min="0">
       <param name="name" type="text" value="" label="Name of the categorical variable to filter on"/>
-      <param name="subset" type="data" format="tabular" label="List of values"/>
+      <param name="subset" type="data" format="tabular" label="List of values to keep" help="A one-column headerless text file is required"/>
     </repeat>
     <expand macro="export_mtx_params"/>
   </inputs>
@@ -65,7 +65,7 @@
         <param name="max" value="1e9"/>
       </repeat>
       <repeat name="parameters">
-        <param name="name" value="gene:n_counts"/>
+        <param name="name" value="n_counts"/>
         <param name="min" value="0"/>
         <param name="max" value="1e9"/>
       </repeat>
@@ -74,16 +74,14 @@
   </tests>
 
   <help><![CDATA[
-===================================================================
-Filter genes based on number of cells or counts (`pp.filter_genes`)
-===================================================================
+=====================================================================
+Filter genes based on arbitrary attributes (`scanpy.pp.filter_genes`)
+=====================================================================
 
 Keep genes that have at least `min_counts` counts or are expressed in at
 least `min_cells` cells or have at most `max_counts` counts or are expressed
-in at most `max_cells` cells.
-
-Only provide one of the optional parameters `min_counts`, `min_cells`,
-`max_counts`, `max_cells` per call.
+in at most `max_cells` cells. Other gene attributes can be used for filtering
+too if available.
 
 
 @HELP@