comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:c7527212b66b
1 <macros>
2 <token name="@TOOL_VERSION@">0.1.5</token>
3 <token name="@VERSION_SUFFIX@">0</token>
4 <token name="@profile@">22.05</token>
5 <xml name="requirements">
6 <requirements>
7 <requirement type="package" version="@TOOL_VERSION@">spapros</requirement>
8 <yield />
9 </requirements>
10 </xml>
11 <xml name="creators">
12 <creator>
13 <organization name="European Galaxy Team" url="https://galaxyproject.org/eu/" />
14 </creator>
15 </xml>
16 <xml name="citations">
17 <citations>
18 <citation type="doi">10.1101/2022.08.16.504115</citation>
19 <citation type="doi">10.1093/gigascience/giaa102</citation>
20 </citations>
21 </xml>
22 <xml name="version_command">
23 <version_command><![CDATA[python -c "import spapros;print('%s' % spapros.__version__ )"]]></version_command>
24 </xml>
25 <token name="@CMD@"><![CDATA[
26 cp '$adata' 'anndata.h5ad' &&
27 cat '$script_file' > '$hidden_output' &&
28 python '$script_file' >> '$hidden_output' &&
29 ls . >> '$hidden_output'
30 ]]>
31 </token>
32 <token name="@CMD_imports@"><![CDATA[
33 import spapros as sp
34 import os
35 import pandas as pd
36 import scanpy as sc
37 import matplotlib as mpl
38 import matplotlib.pyplot as plt
39 import random
40 ]]>
41 </token>
42 <token name="@CMD_plot@"><![CDATA[
43 #if $method.set_ids != 'all' and $method.set_ids != '':
44 set_ids=[$method.set_ids],
45 #end if
46 save='plot.$format',
47 show=False
48 ]]>
49 </token>
50 <xml name="set_ids">
51 <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."/>
52 </xml>
53 <xml name="sanitize_query" token_validinitial="string.printable">
54 <sanitizer>
55 <valid initial="@VALIDINITIAL@">
56 <remove value="&apos;" />
57 </valid>
58 </sanitizer>
59 </xml>
60 <xml name="sanitize_vectors" token_validinitial="string.digits">
61 <sanitizer>
62 <valid initial="@VALIDINITIAL@">
63 <add value=","/>
64 </valid>
65 </sanitizer>
66 </xml>
67 <xml name="inputs_anndata">
68 <param name="adata" type="data" format="h5ad" label="Annotated data matrix"/>
69 </xml>
70 <token name="@CMD_read_inputs@"><![CDATA[
71 adata = sc.read_h5ad('anndata.h5ad')
72 ]]>
73 </token>
74 <xml name="inputs_common_advanced">
75 <param name="show_log" type="boolean" checked="false" label="Output Log?" />
76 </xml>
77 <xml name="param_plot_format">
78 <param name="format" type="select" label="Format for saving figures">
79 <option value="png">png</option>
80 <option value="pdf">pdf</option>
81 <option value="svg">svg</option>
82 </param>
83 </xml>
84 <xml name="param_markerset">
85 <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)."/>
86 <param name="header_markerset" type="select" optional="false" label="Header in the list of markers?">
87 <option value="included">Header included</option>
88 <option value="not_included">Header not included</option>
89 </param>
90 </xml>
91 <xml name="hidden_outputs">
92 <data name="hidden_output" format="txt" label="Log file" >
93 <filter>show_log</filter>
94 </data>
95 </xml>
96 </macros>