Mercurial > repos > iuc > spapros_selection
diff macros.xml @ 0:c7527212b66b draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/spapros/ commit aed7fe13fa0ed09d77a31eeecaf3ec3fba7eed3b
author | iuc |
---|---|
date | Mon, 16 Sep 2024 11:37:46 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml Mon Sep 16 11:37:46 2024 +0000 @@ -0,0 +1,96 @@ +<macros> + <token name="@TOOL_VERSION@">0.1.5</token> + <token name="@VERSION_SUFFIX@">0</token> + <token name="@profile@">22.05</token> + <xml name="requirements"> + <requirements> + <requirement type="package" version="@TOOL_VERSION@">spapros</requirement> + <yield /> + </requirements> + </xml> + <xml name="creators"> + <creator> + <organization name="European Galaxy Team" url="https://galaxyproject.org/eu/" /> + </creator> + </xml> + <xml name="citations"> + <citations> + <citation type="doi">10.1101/2022.08.16.504115</citation> + <citation type="doi">10.1093/gigascience/giaa102</citation> + </citations> + </xml> + <xml name="version_command"> + <version_command><![CDATA[python -c "import spapros;print('%s' % spapros.__version__ )"]]></version_command> + </xml> + <token name="@CMD@"><![CDATA[ +cp '$adata' 'anndata.h5ad' && +cat '$script_file' > '$hidden_output' && +python '$script_file' >> '$hidden_output' && +ls . >> '$hidden_output' + ]]> + </token> + <token name="@CMD_imports@"><![CDATA[ +import spapros as sp +import os +import pandas as pd +import scanpy as sc +import matplotlib as mpl +import matplotlib.pyplot as plt +import random + ]]> + </token> + <token name="@CMD_plot@"><![CDATA[ +#if $method.set_ids != 'all' and $method.set_ids != '': +set_ids=[$method.set_ids], +#end if +save='plot.$format', +show=False + ]]> + </token> + <xml name="set_ids"> + <param name="set_ids" type="text" value="all" optional="true" label="List of probeset ids (comma seperated, e.g., DE,HVG,random)" help="Kepp it with all or empty to select all probeset ids."/> + </xml> + <xml name="sanitize_query" token_validinitial="string.printable"> + <sanitizer> + <valid initial="@VALIDINITIAL@"> + <remove value="'" /> + </valid> + </sanitizer> + </xml> + <xml name="sanitize_vectors" token_validinitial="string.digits"> + <sanitizer> + <valid initial="@VALIDINITIAL@"> + <add value=","/> + </valid> + </sanitizer> + </xml> + <xml name="inputs_anndata"> + <param name="adata" type="data" format="h5ad" label="Annotated data matrix"/> + </xml> + <token name="@CMD_read_inputs@"><![CDATA[ +adata = sc.read_h5ad('anndata.h5ad') +]]> + </token> + <xml name="inputs_common_advanced"> + <param name="show_log" type="boolean" checked="false" label="Output Log?" /> + </xml> + <xml name="param_plot_format"> + <param name="format" type="select" label="Format for saving figures"> + <option value="png">png</option> + <option value="pdf">pdf</option> + <option value="svg">svg</option> + </param> + </xml> + <xml name="param_markerset"> + <param name="markerset" type="data" format="tabular" label="Markerset tabular file with rows=conditions (e.g., celltypes) and column=features (e.g., genes)" help="This is beeing used to calculate the corelations betweens your probeset features and marker features. Marker features are for example genes that you know are important for your condition (e.g., celltypes)."/> + <param name="header_markerset" type="select" optional="false" label="Header in the list of markers?"> + <option value="included">Header included</option> + <option value="not_included">Header not included</option> + </param> + </xml> + <xml name="hidden_outputs"> + <data name="hidden_output" format="txt" label="Log file" > + <filter>show_log</filter> + </data> + </xml> +</macros>