Mercurial > repos > ebi-gxa > scanpy_filter_genes
diff scanpy-filter-genes.xml @ 9:4bc377096eea draft
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/tertiary-analysis/scanpy commit 367d978e52fac9467a804009c5013f53c06765f0
author | ebi-gxa |
---|---|
date | Tue, 26 Nov 2019 05:52:26 -0500 |
parents | 88bccd53d18a |
children | 6d571e4e5839 |
line wrap: on
line diff
--- a/scanpy-filter-genes.xml Mon Nov 25 14:38:14 2019 -0500 +++ b/scanpy-filter-genes.xml Tue Nov 26 05:52:26 2019 -0500 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<tool id="scanpy_filter_genes" name="Scanpy FilterGenes" version="@TOOL_VERSION@+galaxy6"> +<tool id="scanpy_filter_genes" name="Scanpy FilterGenes" version="@TOOL_VERSION@+galaxy7"> <description>based on counts and numbers of cells expressed</description> <macros> <import>scanpy_macros2.xml</import> @@ -9,8 +9,15 @@ ln -s '${input_obj_file}' input.h5 && PYTHONIOENCODING=utf-8 scanpy-filter-genes #if $parameters - #set pars = ' '.join(["--param 'g:{name}' {min} {max}".format(**$p) for $p in $parameters]) - ${pars} +#for $p in $parameters + #set $min = $p.min + #set $max = $p.max + #if $p.name.startswith('pct_') + #set $min = float($min) / 100 + #set $max = float($max) / 100 + #end if + --param 'g:$p.name' $min $max +#end for #end if #if $categories #set cats = ' '.join(["--category 'g:{name}' '{negate}{values}'".format(**$c) for $c in $categories]) @@ -20,6 +27,7 @@ #set subs = ' '.join(["--subset 'g:{name}' '{subset}'".format(**$s) for $s in $subsets]) ${subs} #end if +$force_recalc @INPUT_OPTS@ @OUTPUT_OPTS@ @EXPORT_MTX_OPTS@ @@ -29,25 +37,26 @@ <expand macro="input_object_params"/> <expand macro="output_object_params"/> - <repeat name="parameters" title="Parameters used to filter genes" min="1"> + <repeat name="parameters" title="Parameters to select genes to keep" 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="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"/> + <param name="min" type="float" min="0" value="0" label="Min value" help="Genes with value below min will be discarded."/> + <param name="max" type="float" min="0" value="1e9" label="Max value" help="Genes with value above max will be discarded."/> </repeat> - <repeat name="categories" title="Categories used to filter genes" min="0"> + <repeat name="categories" title="Categories to select genes to keep (unless negate is checked)" 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 list of categories"/> <param name="negate" type="boolean" truevalue="!" falsevalue="" checked="false" label="Apply as negative filter" help="If enabled, specified categories will be removed rather than retained."/> </repeat> - <repeat name="subsets" title="Subsets used to filter genes" min="0"> + <repeat name="subsets" title="Subsets to select genes to keep" 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 to keep" help="A one-column headerless text file is required"/> </repeat> + <param name="force_recalc" label="Force recalculation of QC vars" type="boolean" truevalue="--force-recalc" falsevalue="" help="If set, it will recalculate pcts and other existing QC vars, overwriting existing ones."/> <expand macro="export_mtx_params"/> </inputs>