Mercurial > repos > bgruening > sklearn_pairwise_metrics
comparison pairwise_metrics.xml @ 38:25c6949b930d draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
author | bgruening |
---|---|
date | Tue, 13 Apr 2021 16:07:24 +0000 |
parents | 8e9ec9713c21 |
children | 56cd8f4e5e11 |
comparison
equal
deleted
inserted
replaced
37:9d0ac3993d62 | 38:25c6949b930d |
---|---|
1 <tool id="sklearn_pairwise_metrics" name="Evaluate pairwise distances" version="@VERSION@"> | 1 <tool id="sklearn_pairwise_metrics" name="Evaluate pairwise distances" version="@VERSION@" profile="20.05"> |
2 <description>or compute affinity or kernel for sets of samples</description> | 2 <description>or compute affinity or kernel for sets of samples</description> |
3 <macros> | 3 <macros> |
4 <import>main_macros.xml</import> | 4 <import>main_macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="python_requirements"/> | 6 <expand macro="python_requirements" /> |
7 <expand macro="macro_stdio"/> | 7 <expand macro="macro_stdio" /> |
8 <version_command>echo "@VERSION@"</version_command> | 8 <version_command>echo "@VERSION@"</version_command> |
9 <command> | 9 <command> |
10 <![CDATA[ | 10 <![CDATA[ |
11 python "$pairwise_script" '$inputs' | 11 python "$pairwise_script" '$inputs' |
12 ]]> | 12 ]]> |
62 <param name="selected_input_type" type="select" label="Select the type of your input data:"> | 62 <param name="selected_input_type" type="select" label="Select the type of your input data:"> |
63 <option value="tabular" selected="true">Tabular data (.tabular, .txt)</option> | 63 <option value="tabular" selected="true">Tabular data (.tabular, .txt)</option> |
64 <option value="sparse">Sparse matrix (.mtx)</option> | 64 <option value="sparse">Sparse matrix (.mtx)</option> |
65 </param> | 65 </param> |
66 <when value="tabular"> | 66 <when value="tabular"> |
67 <expand macro="multiple_input" max_num="2" format="tabular"/> | 67 <expand macro="multiple_input" max_num="2" format="tabular" /> |
68 <conditional name="metric_functions"> | 68 <conditional name="metric_functions"> |
69 <expand macro="sparse_pairwise_metric_functions"> | 69 <expand macro="sparse_pairwise_metric_functions"> |
70 <expand macro="pairwise_metric_functions"/> | 70 <expand macro="pairwise_metric_functions" /> |
71 </expand> | 71 </expand> |
72 <when value="additive_chi2_kernel"> | 72 <when value="additive_chi2_kernel"> |
73 </when> | 73 </when> |
74 <when value="chi2_kernel"> | 74 <when value="chi2_kernel"> |
75 <section name="options" title="Advanced Options" expanded="False"> | 75 <section name="options" title="Advanced Options" expanded="False"> |
76 <expand macro="gamma" help_text="Floating point scaling parameter of the chi2 kernel. "/> | 76 <expand macro="gamma" help_text="Floating point scaling parameter of the chi2 kernel. " /> |
77 </section> | 77 </section> |
78 </when> | 78 </when> |
79 <when value="linear_kernel"> | 79 <when value="linear_kernel"> |
80 </when> | 80 </when> |
81 <when value="manhattan_distances"> | 81 <when value="manhattan_distances"> |
82 <section name="options" title="Advanced Options" expanded="False"> | 82 <section name="options" title="Advanced Options" expanded="False"> |
83 <param argument="sum_over_features" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true" label="Sum over features" help="If True, return the pairwise distance matrix, else return the componentwise L1 pairwise-distances. "/> | 83 <param argument="sum_over_features" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true" label="Sum over features" help="If True, return the pairwise distance matrix, else return the componentwise L1 pairwise-distances. " /> |
84 </section> | 84 </section> |
85 </when> | 85 </when> |
86 <when value="polynomial_kernel"> | 86 <when value="polynomial_kernel"> |
87 <section name="options" title="Advanced Options" expanded="False"> | 87 <section name="options" title="Advanced Options" expanded="False"> |
88 <expand macro="gamma" default_value=""/> | 88 <expand macro="gamma" default_value="" /> |
89 <expand macro="degree"/> | 89 <expand macro="degree" /> |
90 <expand macro="coef0"/> | 90 <expand macro="coef0" /> |
91 </section> | 91 </section> |
92 </when> | 92 </when> |
93 <when value="rbf_kernel"> | 93 <when value="rbf_kernel"> |
94 <section name="options" title="Advanced Options" expanded="False"> | 94 <section name="options" title="Advanced Options" expanded="False"> |
95 <expand macro="gamma" default_value=""/> | 95 <expand macro="gamma" default_value="" /> |
96 </section> | 96 </section> |
97 </when> | 97 </when> |
98 <when value="laplacian_kernel"> | 98 <when value="laplacian_kernel"> |
99 <section name="options" title="Advanced Options" expanded="False"> | 99 <section name="options" title="Advanced Options" expanded="False"> |
100 <expand macro="gamma" default_value=""/> | 100 <expand macro="gamma" default_value="" /> |
101 </section> | 101 </section> |
102 </when> | 102 </when> |
103 <when value="pairwise_kernels"> | 103 <when value="pairwise_kernels"> |
104 <section name="options" title="Advanced Options" expanded="False"> | 104 <section name="options" title="Advanced Options" expanded="False"> |
105 <expand macro="pairwise_kernel_metrics"/> | 105 <expand macro="pairwise_kernel_metrics" /> |
106 </section> | 106 </section> |
107 </when> | 107 </when> |
108 <expand macro="sparse_pairwise_condition"> | 108 <expand macro="sparse_pairwise_condition"> |
109 <expand macro="distance_nonsparse_metrics"/> | 109 <expand macro="distance_nonsparse_metrics" /> |
110 </expand> | 110 </expand> |
111 <expand macro="argmin_distance_condition"> | 111 <expand macro="argmin_distance_condition"> |
112 <expand macro="distance_nonsparse_metrics"/> | 112 <expand macro="distance_nonsparse_metrics" /> |
113 </expand> | 113 </expand> |
114 </conditional> | 114 </conditional> |
115 </when> | 115 </when> |
116 <when value="sparse"> | 116 <when value="sparse"> |
117 <expand macro="multiple_input" max_num="2"/> | 117 <expand macro="multiple_input" max_num="2" /> |
118 <conditional name="metric_functions"> | 118 <conditional name="metric_functions"> |
119 <expand macro="sparse_pairwise_metric_functions"/> | 119 <expand macro="sparse_pairwise_metric_functions" /> |
120 <expand macro="sparse_pairwise_condition"/> | 120 <expand macro="sparse_pairwise_condition" /> |
121 <expand macro="argmin_distance_condition"/> | 121 <expand macro="argmin_distance_condition" /> |
122 </conditional> | 122 </conditional> |
123 </when> | 123 </when> |
124 </conditional> | 124 </conditional> |
125 </inputs> | 125 </inputs> |
126 <outputs> | 126 <outputs> |
127 <data format="tabular" name="outfile"/> | 127 <data format="tabular" name="outfile" /> |
128 </outputs> | 128 </outputs> |
129 <tests> | 129 <tests> |
130 <test> | 130 <test> |
131 <param name="selected_input_type" value="tabular"/> | 131 <param name="selected_input_type" value="tabular" /> |
132 <param name="selected_metric_function" value="rbf_kernel"/> | 132 <param name="selected_metric_function" value="rbf_kernel" /> |
133 <param name="input_files_0|input" value="test.tabular" ftype="tabular"/> | 133 <param name="input_files_0|input" value="test.tabular" ftype="tabular" /> |
134 <param name="input_files_1|input" value="test2.tabular" ftype="tabular"/> | 134 <param name="input_files_1|input" value="test2.tabular" ftype="tabular" /> |
135 <param name="gamma" value="0.5"/> | 135 <param name="gamma" value="0.5" /> |
136 <output name="outfile" file="pw_metric01.tabular" compare="sim_size" /> | 136 <output name="outfile" file="pw_metric01.tabular" compare="sim_size" /> |
137 </test> | 137 </test> |
138 <test> | 138 <test> |
139 <param name="selected_input_type" value="tabular"/> | 139 <param name="selected_input_type" value="tabular" /> |
140 <param name="selected_metric_function" value="pairwise_distances"/> | 140 <param name="selected_metric_function" value="pairwise_distances" /> |
141 <param name="metric" value="manhattan"/> | 141 <param name="metric" value="manhattan" /> |
142 <param name="input_files_0|input" value="test.tabular" ftype="tabular"/> | 142 <param name="input_files_0|input" value="test.tabular" ftype="tabular" /> |
143 <output name="outfile" file="pw_metric02.tabular" lines_diff="4"/> | 143 <output name="outfile" file="pw_metric02.tabular" lines_diff="4" /> |
144 </test> | 144 </test> |
145 <test> | 145 <test> |
146 <param name="selected_input_type" value="sparse"/> | 146 <param name="selected_input_type" value="sparse" /> |
147 <param name="selected_metric_function" value="pairwise_distances"/> | 147 <param name="selected_metric_function" value="pairwise_distances" /> |
148 <param name="metric" value="cosine"/> | 148 <param name="metric" value="cosine" /> |
149 <param name="input_files_0|input" value="sparse.mtx" ftype="txt"/> | 149 <param name="input_files_0|input" value="sparse.mtx" ftype="txt" /> |
150 <output name="outfile" file="pw_metric03.tabular"/> | 150 <output name="outfile" file="pw_metric03.tabular" /> |
151 </test> | 151 </test> |
152 </tests> | 152 </tests> |
153 <help> | 153 <help> |
154 <![CDATA[ | 154 <![CDATA[ |
155 **What it does** | 155 **What it does** |
158 The base utilities are contained in Scikit-learn python library in sklearn.metrics package. | 158 The base utilities are contained in Scikit-learn python library in sklearn.metrics package. |
159 This module contains both distance metrics and kernels. For a brief summary, please refer to: | 159 This module contains both distance metrics and kernels. For a brief summary, please refer to: |
160 http://scikit-learn.org/stable/modules/metrics.html#metrics | 160 http://scikit-learn.org/stable/modules/metrics.html#metrics |
161 ]]> | 161 ]]> |
162 </help> | 162 </help> |
163 <expand macro="sklearn_citation"/> | 163 <expand macro="sklearn_citation" /> |
164 </tool> | 164 </tool> |