changeset 6:2e9036936e02 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/landmark_registration/ commit 8e99ddb62ceab1da15996906a0813826b62d38fe
author imgteam
date Wed, 17 Dec 2025 11:22:32 +0000
parents 1732f535c0c6
children
files landmark_registration.xml
diffstat 1 files changed, 27 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/landmark_registration.xml	Wed Aug 03 16:50:16 2022 +0000
+++ b/landmark_registration.xml	Wed Dec 17 11:22:32 2025 +0000
@@ -1,5 +1,11 @@
-<tool id="ip_landmark_registration" name="Landmark Registration" version="0.1.0" profile="20.05">
-    <description>estimates the affine transformation matrix or performs piecewise affine transformation</description>
+<tool id="ip_landmark_registration" name="Perform affine image registration (landmark-based)" version="0.1.0-2" profile="20.05">
+    <description/>
+    <edam_operations>
+        <edam_operation>operation_3443</edam_operation>
+    </edam_operations>
+    <xrefs>
+        <xref type="bio.tools">galaxy_image_analysis</xref>
+    </xrefs>
     <requirements>
         <requirement type="package" version="0.18.1">scikit-image</requirement>
         <requirement type="package" version="1.6.2">scipy</requirement>
@@ -21,8 +27,8 @@
     ]]>
     </command>
     <inputs>
-        <param name="fn_lmkmov" type="data" format="tabular" label="Coordinates of moving landmarks (tsv file)" />
-        <param name="fn_lmkfix" type="data" format="tabular" label="Coordinates of fixed landmarks (tsv file)" />
+        <param name="fn_lmkmov" type="data" format="tabular" label="Coordinates of moving landmarks (tsv file)"/>
+        <param name="fn_lmkfix" type="data" format="tabular" label="Coordinates of fixed landmarks (tsv file)"/>
         <conditional name="algo_option">
             <param name="algo" type="select" label="Select the algorithm">
                 <option value="ransac">Affine Transformation (based on RANSAC)</option>
@@ -30,38 +36,44 @@
                 <option value="pwat" selected="True">Piecewise Affine Transformation</option>
             </param>
             <when value="ransac">
-                <param name="res_th" type="float" value="2.0" label="Maximum distance for a data point to be classified as an inlier." />
-                <param name="max_ite" type="integer" value="100" label="Maximum number of iterations for random sample selection." />
+                <param name="res_th" type="float" value="2.0" label="Maximum distance for a data point to be classified as an inlier."/>
+                <param name="max_ite" type="integer" value="100" label="Maximum number of iterations for random sample selection."/>
             </when>
-            <when value="ls"></when>
+            <when value="ls"/>
             <when value="pwat">
-                <param name="fn_ptsmov" type="data" format="tabular" label="Coordinates of points to be transformed (tsv file)" />
+                <param name="fn_ptsmov" type="data" format="tabular" label="Coordinates of points to be transformed (tsv file)"/>
             </when>
         </conditional>
     </inputs>
     <outputs>
-        <data format="tabular" name="fn_out" />
+        <data format="tabular" name="fn_out"/>
     </outputs>
     <tests>
         <test>
             <param name="fn_lmkmov" value="points_moving.tsv"/>
             <param name="fn_lmkfix" value="points_fixed.tsv"/>
-            <param name="algo" value="ls"/>
+            <conditional name="algo_option">
+                <param name="algo" value="ls"/>
+            </conditional>
             <output name="fn_out" value="tmat.tsv" ftype="tabular" compare="diff" lines_diff="6"/>
         </test>
         <test>
             <param name="fn_lmkmov" value="points_moving.tsv"/>
             <param name="fn_lmkfix" value="points_fixed.tsv"/>
-            <param name="algo" value="ransac"/>
-            <param name="res_th" value="2.0"/>
-            <param name="max_ite" value="100"/>
+            <conditional name="algo_option">
+                <param name="algo" value="ransac"/>
+                <param name="res_th" value="2.0"/>
+                <param name="max_ite" value="100"/>
+            </conditional>
             <output name="fn_out" value="tmat.tsv" ftype="tabular" compare="diff" lines_diff="6"/>
         </test>
         <test>
             <param name="fn_lmkmov" value="lmk_mov.tsv"/>
             <param name="fn_lmkfix" value="lmk_fix.tsv"/>
-            <param name="algo" value="pwat"/>
-            <param name="fn_ptsmov" value="points.tsv"/>
+            <conditional name="algo_option">
+                <param name="algo" value="pwat"/>
+                <param name="fn_ptsmov" value="points.tsv"/>
+            </conditional>
             <output name="fn_out" value="points_pwlt.tsv" ftype="tabular"/>
         </test>
     </tests>