|
73 | 73 | ## Move contents to the directory path Galaxy expects |
74 | 74 | mv out.zarr/* '$output_spatialdata' && |
75 | 75 |
|
| 76 | + ## Write zarr verification file |
| 77 | + echo "ProSeg zarr output verified." > '$zarr_check' && |
| 78 | + ls out.zarr/ >> '$zarr_check' && |
| 79 | +
|
| 80 | + ## Write HTML stub for spatialdata output |
| 81 | + echo '<html><body>SpatialData zarr output</body></html>' > '$output_spatialdata' && |
| 82 | +
|
76 | 83 | ## Write run summary |
77 | 84 | echo "ProSeg run complete." > '$run_summary' |
78 | 85 | ]]></command> |
|
146 | 153 | </inputs> |
147 | 154 |
|
148 | 155 | <outputs> |
149 | | - <data name="output_spatialdata" format="directory" label="${tool.name} on ${on_string}: Segmentation (SpatialData zarr)"/> |
150 | | - <data name="output_polygons_file" format="parquet" label="${tool.name} on ${on_string}: Cell boundary polygons"> |
| 156 | + <data name="output_spatialdata" |
| 157 | + format="html" |
| 158 | + label="${tool.name} on ${on_string}: Segmentation (SpatialData zarr)"/> |
| 159 | + <data name="zarr_check" |
| 160 | + format="txt" |
| 161 | + label="${tool.name} on ${on_string}: Zarr contents"/> |
| 162 | + <data name="output_polygons_file" |
| 163 | + format="parquet" |
| 164 | + label="${tool.name} on ${on_string}: Cell boundary polygons"> |
151 | 165 | <filter>generate_polygons</filter> |
152 | 166 | </data> |
153 | | - <data name="run_summary" format="txt" label="${tool.name} on ${on_string}: Run summary"/> |
| 167 | + <data name="run_summary" |
| 168 | + format="txt" |
| 169 | + label="${tool.name} on ${on_string}: Run summary"/> |
154 | 170 | </outputs> |
155 | 171 |
|
156 | 172 | <tests> |
157 | | - <test expect_num_outputs="2"> |
| 173 | + <test expect_num_outputs="3"> |
158 | 174 | <param name="transcripts" value="test_transcripts.csv" ftype="csv"/> |
159 | 175 | <param name="cellpose_masks" value="test_masks.npy" ftype="npy"/> |
160 | 176 | <conditional name="platform"> |
|
171 | 187 | <param name="burnin_samples" value="50"/> |
172 | 188 | <output name="run_summary"> |
173 | 189 | <assert_contents> |
174 | | - <has_text text="complete"/> |
| 190 | + <has_text text="ProSeg run complete."/> |
| 191 | + </assert_contents> |
| 192 | + </output> |
| 193 | + <output name="zarr_check"> |
| 194 | + <assert_contents> |
| 195 | + <has_text text="ProSeg zarr output verified."/> |
| 196 | + </assert_contents> |
| 197 | + </output> |
| 198 | + <output name="output_spatialdata" ftype="html"> |
| 199 | + <assert_contents> |
| 200 | + <has_text text="SpatialData zarr output"/> |
175 | 201 | </assert_contents> |
176 | 202 | </output> |
177 | | - <output name="output_spatialdata" ftype="directory"/> |
178 | 203 | </test> |
179 | 204 | </tests> |
180 | 205 |
|
|
0 commit comments