comparison pcdl_get_anndata.xml @ 0:c78f852b1a45 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/pcdl/ commit 7c74921b41bd7ab639e5a3f8b54e407f79ed8f16
author iuc
date Mon, 04 Aug 2025 18:57:48 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c78f852b1a45
1 <tool id="pcdl_get_anndata" name="pcdl_get_anndata" version="3.0.1+galaxy0" profile="21.05">
2 <macros>
3 <import>pcdl_macros.xml</import>
4 </macros>
5 <requirements>
6 <expand macro="requirement"/>
7 </requirements>
8 <command><![CDATA[
9 #import re
10 mkdir output_pc &&
11 #for $file in $path:
12 #set $filename = re.sub('[^\w\-\.\s]', '_', str($file.element_identifier))
13 ln -s '$file' output_pc/$filename &&
14 #end for
15
16 pcdl_get_anndata 'output_pc' $entropy
17 --custom_data_type $custom_data_type
18 --microenv $microenv
19 --graph $graph
20 --physiboss $physiboss
21 --settingxml 'none'
22 --verbose $verbose
23 --drop $drop
24 --keep $keep
25 --scale maxabs
26 --collapse $collapse
27 ]]></command>
28 <inputs>
29 <section name="essential" title="essential:" expanded="true">
30 <expand macro="path"/>
31 <expand macro="entropy"/>
32 <expand macro="custom_data_type"/>
33 <expand macro="drop"/>
34 <expand macro="keep"/>
35 <expand macro="scale"/>
36 <expand macro="collapse"/>
37 </section>
38 <section name="advanced" title="advanced:" expanded="false">
39 <expand macro="microenv"/>
40 <expand macro="graph"/>
41 <expand macro="physiboss"/>
42 <expand macro="verbose"/>
43 </section>
44 </inputs>
45 <outputs>
46 <collection name="anndata_h5ad" type="list">
47 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.h5ad" format="h5ad" directory="output_pc" visible="false"/>
48 </collection>
49 </outputs>
50 <tests>
51 <test expect_num_outputs="1">
52 <section name="essential">
53 <param name="path">
54 <expand macro="output"/>
55 </param>
56 <param name="collapse" value="true"/>
57 </section>
58 <section name="advanced">
59 <param name="verbose" value="true"/>
60 </section>
61 <output_collection name="anndata_h5ad" count="1">
62 <element name="timeseries_cell_maxabs">
63 <assert_contents>
64 <has_h5_keys keys="X"/>
65 <has_h5_keys keys="layers"/>
66 <has_h5_keys keys="obs/ID, obs/cell_type, obs/chemotaxis_index, obs/current_death_model, obs/current_phase, obs/cycle_model, obs/id_time, obs/time, obs/z_layer"/>
67 <has_h5_keys keys="obsm/spatial"/>
68 <has_h5_keys keys="uns"/>
69 <has_h5_keys keys="var/_index"/>
70 <has_h5_keys keys="varm"/>
71 <has_h5_keys keys="varp"/>
72 </assert_contents>
73 </element>
74 </output_collection>
75 </test>
76 <test expect_num_outputs="1">
77 <section name="essential">
78 <param name="path">
79 <expand macro="output"/>
80 </param>
81 <param name="collapse" value="false"/>
82 </section>
83 <section name="advanced">
84 <param name="verbose" value="false"/>
85 </section>
86 <output_collection name="anndata_h5ad" count="2">
87 <element name="output00000000_cell_maxabs">
88 <assert_contents>
89 <has_h5_keys keys="X"/>
90 <has_h5_keys keys="layers"/>
91 <has_h5_keys keys="obs/ID, obs/cell_type, obs/chemotaxis_index, obs/current_death_model, obs/current_phase, obs/cycle_model, obs/time, obs/z_layer"/>
92 <has_h5_keys keys="obsm/spatial"/>
93 <has_h5_keys keys="uns"/>
94 <has_h5_keys keys="var/_index"/>
95 <has_h5_keys keys="varm"/>
96 <has_h5_keys keys="varp"/>
97 </assert_contents>
98 </element>
99 <element name="output00000001_cell_maxabs">
100 <assert_contents>
101 <has_h5_keys keys="X"/>
102 <has_h5_keys keys="layers"/>
103 <has_h5_keys keys="obs/ID, obs/cell_type, obs/chemotaxis_index, obs/current_death_model, obs/current_phase, obs/cycle_model, obs/time, obs/z_layer"/>
104 <has_h5_keys keys="obsm/spatial"/>
105 <has_h5_keys keys="uns"/>
106 <has_h5_keys keys="var/_index"/>
107 <has_h5_keys keys="varm"/>
108 <has_h5_keys keys="varp"/>
109 </assert_contents>
110 </element>
111 </output_collection>
112 </test>
113 </tests>
114 <help><![CDATA[
115 Function to transform mcds time steps into one or many anndata objects for downstream analysis.
116
117 Scale parameter details: Possible values are None, maxabs, minmax, std.
118 None: no scaling. Set scale to None if you would like to have raw data or entirely scale, transform, and normalize the data later.
119 Maxabs: maximum absolute value distance scaler will linearly map all values into a [-1, 1] interval. If the original data has no negative values, the result will be the same as with the minmax scaler (except with attributes with only one value). If the attribute has only zeros, the value will be set to 0.
120 Minmax: minimum maximum distance scaler will map all values linearly into a [0, 1] interval. If the attribute has only one value, the value will be set to 0.
121 Std: standard deviation scaler will result in sigmas. Each attribute will be mean centered around 0. Ddof delta degree of freedom is set to 1 because it is assumed that the values are samples out of the population and not the entire population. It is incomprehensible to me that the equivalent sklearn method has ddof set to 0. If the attribute has only one value, the value will be set to 0.
122
123 Homepage: https://github.com/elmbeech/physicelldataloader
124 ]]></help>
125 <citations>
126 <expand macro="citation"/>
127 </citations>
128 </tool>