comparison scimap_spatial.xml @ 3:472780baf150 draft

planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/scimap commit 49210b00535415865694ddbec16238d8cf5e6bb0
author goeckslab
date Wed, 26 Jun 2024 15:26:49 +0000
parents d19c068c2490
children
comparison
equal deleted inserted replaced
2:d19c068c2490 3:472780baf150
142 </param> 142 </param>
143 <param argument="radius" type="integer" value="30" optional="true" label="The radius used to define a local neighbhourhood" /> 143 <param argument="radius" type="integer" value="30" optional="true" label="The radius used to define a local neighbhourhood" />
144 <param argument="knn" type="integer" value="10" optional="true" label="Number of cells considered for defining the local neighbhourhood" /> 144 <param argument="knn" type="integer" value="10" optional="true" label="Number of cells considered for defining the local neighbhourhood" />
145 <param argument="num_motifs" type="integer" value="10" optional="true" label="The number of requested latent motifs to be extracted from the training corpus" /> 145 <param argument="num_motifs" type="integer" value="10" optional="true" label="The number of requested latent motifs to be extracted from the training corpus" />
146 <param argument="random_state" type="integer" value="0" optional="true" label="The seed number for random state" /> 146 <param argument="random_state" type="integer" value="0" optional="true" label="The seed number for random state" />
147 <param argument="max_weight_assignment" type="boolean" checked="false" optional="true" label="Assign cells to motifs based on maximum LDA weight" />
147 </expand> 148 </expand>
148 </when> 149 </when>
149 <when value="spatial_pscore"> 150 <when value="spatial_pscore">
150 <expand macro="scimap_spatial_options" label="spatial_pscore"> 151 <expand macro="scimap_spatial_options" label="spatial_pscore">
151 <param argument="proximity" type="text" value="" optional="false" label="Type in the list of cell-types for which the proximity score needs to calculated" help="Comma delimited. e.g.: CellType-A,CellType-B." /> 152 <param argument="proximity" type="text" value="" optional="false" label="Type in the list of cell-types for which the proximity score needs to calculated" help="Comma delimited. e.g.: CellType-A,CellType-B." />
161 </when> 162 </when>
162 </conditional> 163 </conditional>
163 </inputs> 164 </inputs>
164 <outputs> 165 <outputs>
165 <data format="h5ad" name="output" label="Scimap.tools.${analyses.selected_tool} on ${on_string}" /> 166 <data format="h5ad" name="output" label="Scimap.tools.${analyses.selected_tool} on ${on_string}" />
167 <collection name="tabular_outputs" type="list" label="Tabular outputs from Scimap.tools.${analyses.selected_tool} on ${on_string}">
168 <data format="tabular" name="lda_weights" from_work_dir="lda_weights.txt" label="LDA weights from Scimap.tools.${analyses.selected_tool} on ${on_string}" />
169 <data format="tabular" name="lda_probabilities" from_work_dir="lda_probabilities.txt" label="LDA probabilites from Scimap.tools.${analyses.selected_tool} on ${on_string}" />
170 <filter>analyses['selected_tool'] == 'spatial_lda'</filter>
171 </collection>
166 </outputs> 172 </outputs>
167 <tests> 173 <tests>
168 <test> 174 <test expect_num_outputs="1">
169 <param name="anndata" value="tutorial_data_pheno.h5ad" /> 175 <param name="anndata" value="tutorial_data_pheno.h5ad" />
170 <conditional name="analyses"> 176 <conditional name="analyses">
171 <param name="selected_tool" value="cluster" /> 177 <param name="selected_tool" value="cluster" />
172 <param name="method" value="kmeans" /> 178 <param name="method" value="kmeans" />
173 </conditional> 179 </conditional>
175 <assert_contents> 181 <assert_contents>
176 <has_h5_keys keys="obs/kmeans" /> 182 <has_h5_keys keys="obs/kmeans" />
177 </assert_contents> 183 </assert_contents>
178 </output> 184 </output>
179 </test> 185 </test>
180 <test> 186 <test expect_num_outputs="1">
181 <param name="anndata" value="tutorial_data_pheno.h5ad" /> 187 <param name="anndata" value="tutorial_data_pheno.h5ad" />
182 <conditional name="analyses"> 188 <conditional name="analyses">
183 <param name="selected_tool" value="spatial_aggregate" /> 189 <param name="selected_tool" value="spatial_aggregate" />
184 </conditional> 190 </conditional>
185 <output name="output"> 191 <output name="output">
186 <assert_contents> 192 <assert_contents>
187 <has_h5_keys keys="obs/spatial_aggregate" /> 193 <has_h5_keys keys="obs/spatial_aggregate" />
188 </assert_contents> 194 </assert_contents>
189 </output> 195 </output>
190 </test> 196 </test>
197 <test expect_num_outputs="4">
198 <param name="anndata" value="tutorial_data_pheno.h5ad" />
199 <conditional name="analyses">
200 <param name="selected_tool" value="spatial_lda" />
201 <section name="options">
202 <param name="max_weight_assignment" value="True" />
203 </section>
204 </conditional>
205 <output name="output">
206 <assert_contents>
207 <has_h5_keys keys="obs/neighborhood_motif" />
208 </assert_contents>
209 </output>
210 <output_collection name="tabular_outputs" type="list">
211 <element name="lda_weights">
212 <assert_contents>
213 <has_n_lines n="500" />
214 <has_n_columns n="12" />
215 </assert_contents>
216 </element>
217 <element name="lda_probabilities">
218 <assert_contents>
219 <has_n_lines n="11" />
220 <has_n_columns n="15" />
221 </assert_contents>
222 </element>
223 </output_collection>
224 </test>
191 </tests> 225 </tests>
192 <help> 226 <help>
193 <![CDATA[ 227 <![CDATA[
194 **What it does** 228 **What it does**
195 229