Skip to content

Commit

Permalink
Add missing macros
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Mar 21, 2024
1 parent 33135f3 commit dd3e6d4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If Galaxy Image Analysis helped with the analysis of your data, please do not fo
- [Process images using arithmetic expressions](https://usegalaxy.eu/root?tool_id=toolshed.g2.bx.psu.edu/repos/imgteam/image_math/image_math) with NumPy
- [Scale image](https://usegalaxy.eu/root?tool_id=toolshed.g2.bx.psu.edu/repos/imgteam/scale_image/ip_scale_image) with scikit-image
- [Show image info](https://usegalaxy.eu/root?tool_id=toolshed.g2.bx.psu.edu/repos/imgteam/image_info/ip_imageinfo) with Bioformats
- [Slice image](https://usegalaxy.eu/root?tool_id=toolshed.g2.bx.psu.edu/repos/imgteam/slice_image/ip_slice_image)
- [Slice image into patches](https://usegalaxy.eu/root?tool_id=toolshed.g2.bx.psu.edu/repos/imgteam/slice_image/ip_slice_image)
- [Switch axis coordinates](https://usegalaxy.eu/root?tool_id=toolshed.g2.bx.psu.edu/repos/imgteam/imagecoordinates_flipaxis/imagecoordinates_flipaxis)

### Image conversion
Expand Down
47 changes: 47 additions & 0 deletions macros/tests.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<macros>

<!-- Macros for verification of image outputs -->

<xml
name="tests/binary_image_diff"
tokens="name,value,ftype,metric,eps"
Expand Down Expand Up @@ -43,4 +45,49 @@

</xml>

<!-- Variants of the above for verification of collection elements -->

<xml
name="tests/binary_image_diff/element"
tokens="name,value,ftype,metric,eps"
token_metric="mae"
token_eps="0.01">

<element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
<assert_contents>
<has_image_n_labels n="2"/>
<yield/>
</assert_contents>
</element>

</xml>

<xml
name="tests/label_image_diff/element"
tokens="name,value,ftype,metric,eps"
token_metric="iou"
token_eps="0.01">

<element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
<assert_contents>
<yield/>
</assert_contents>
</element>

</xml>

<xml
name="tests/intensity_image_diff/element"
tokens="name,value,ftype,metric,eps"
token_metric="rms"
token_eps="0.01">

<element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
<assert_contents>
<yield/>
</assert_contents>
</element>

</xml>

</macros>

0 comments on commit dd3e6d4

Please sign in to comment.