annotate landmark_registration.xml @ 5:12997d4c5b00 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 6d6a6fd04fa1d1f9a5bf1aff451e43be072c0293
author imgteam
date Wed, 03 Aug 2022 16:50:52 +0000
parents aee73493bf53
children 02aa2873e67d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
12997d4c5b00 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 6d6a6fd04fa1d1f9a5bf1aff451e43be072c0293
imgteam
parents: 4
diff changeset
1 <tool id="ip_landmark_registration" name="Landmark Registration" version="0.1.0" profile="20.05">
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
2 <description>estimates the affine transformation matrix or performs piecewise affine transformation</description>
0
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
3 <requirements>
2
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
4 <requirement type="package" version="0.18.1">scikit-image</requirement>
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
5 <requirement type="package" version="1.6.2">scipy</requirement>
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
6 <requirement type="package" version="1.2.4">pandas</requirement>
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
7 <requirement type="package" version="1.20.2">numpy</requirement>
0
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
8 </requirements>
2
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
9 <command detect_errors="aggressive">
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
10 <![CDATA[
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
11 python '$__tool_directory__/landmark_registration.py'
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
12 '$fn_lmkmov'
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
13 '$fn_lmkfix'
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
14 '$fn_out'
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
15 #if $algo_option.algo == "pwat"
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
16 --pwlt '$algo_option.fn_ptsmov'
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
17 #elif $algo_option.algo == "ransac"
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
18 --res_th $algo_option.res_th
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
19 --max_ite $algo_option.max_ite
2
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
20 #end if
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
21 ]]>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
22 </command>
0
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
23 <inputs>
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
24 <param name="fn_lmkmov" type="data" format="tabular" label="Coordinates of moving landmarks (tsv file)" />
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
25 <param name="fn_lmkfix" type="data" format="tabular" label="Coordinates of fixed landmarks (tsv file)" />
2
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
26 <conditional name="algo_option">
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
27 <param name="algo" type="select" label="Select the algorithm">
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
28 <option value="ransac">Affine Transformation (based on RANSAC)</option>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
29 <option value="ls">Affine Transformation (based on Least Squares)</option>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
30 <option value="pwat" selected="True">Piecewise Affine Transformation</option>
2
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
31 </param>
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
32 <when value="ransac">
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
33 <param name="res_th" type="float" value="2.0" label="Maximum distance for a data point to be classified as an inlier." />
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
34 <param name="max_ite" type="integer" value="100" label="Maximum number of iterations for random sample selection." />
2
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
35 </when>
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
36 <when value="ls"></when>
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
37 <when value="pwat">
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
38 <param name="fn_ptsmov" type="data" format="tabular" label="Coordinates of points to be transformed (tsv file)" />
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
39 </when>
2
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
40 </conditional>
0
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
41 </inputs>
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
42 <outputs>
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
43 <data format="tabular" name="fn_out" />
0
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
44 </outputs>
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
45 <tests>
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
46 <test>
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
47 <param name="fn_lmkmov" value="points_moving.tsv"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
48 <param name="fn_lmkfix" value="points_fixed.tsv"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
49 <param name="algo" value="ls"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
50 <output name="fn_out" value="tmat.tsv" ftype="tabular" compare="diff" lines_diff="6"/>
2
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
51 </test>
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
52 <test>
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
53 <param name="fn_lmkmov" value="points_moving.tsv"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
54 <param name="fn_lmkfix" value="points_fixed.tsv"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
55 <param name="algo" value="ransac"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
56 <param name="res_th" value="2.0"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
57 <param name="max_ite" value="100"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
58 <output name="fn_out" value="tmat.tsv" ftype="tabular" compare="diff" lines_diff="6"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
59 </test>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
60 <test>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
61 <param name="fn_lmkmov" value="lmk_mov.tsv"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
62 <param name="fn_lmkfix" value="lmk_fix.tsv"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
63 <param name="algo" value="pwat"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
64 <param name="fn_ptsmov" value="points.tsv"/>
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
65 <output name="fn_out" value="points_pwlt.tsv" ftype="tabular"/>
0
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
66 </test>
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
67 </tests>
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
68 <help>
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
69 **What it does**
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
70
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
71 1) Estimation of the affine transformation matrix between two sets of 2d points;
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
72 2) Piecewise affine transformation of points based on landmark pairs.
2
4e089a0983b1 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 927b78d47c31714776ccdf3d16f26c3779298abb"
imgteam
parents: 0
diff changeset
73
4
aee73493bf53 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit ba383a4f617791d0c84737a179e5b4b66cecc334
imgteam
parents: 3
diff changeset
74 About the format of landmark/point coordinates in the input TSV table: Columns with header "x" and "y" are for x- and y-coordinate, respectively.
0
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
75 </help>
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
76 <citations>
5
12997d4c5b00 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit 6d6a6fd04fa1d1f9a5bf1aff451e43be072c0293
imgteam
parents: 4
diff changeset
77 <citation type="doi">10.3390/cells11152390</citation>
0
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
78 <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
79 </citations>
a71239f3543a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/landmark_registration/ commit d5df0e2f37920d09b5d942a7b128041ee1f0b6f5
imgteam
parents:
diff changeset
80 </tool>