comparison regression_metrics.xml @ 4:ef365d71514e draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 64158f357e708f0b60d2669d92d614f7aee34c0e
author bgruening
date Wed, 06 Jun 2018 17:39:49 -0400
parents c5feb1a67e9b
children 3ce5d492b568
comparison
equal deleted inserted replaced
3:c5feb1a67e9b 4:ef365d71514e
26 input_json_path = sys.argv[1] 26 input_json_path = sys.argv[1]
27 params = json.load(open(input_json_path, "r")) 27 params = json.load(open(input_json_path, "r"))
28 28
29 header='infer' if params["regression_metrics"]["header1"] else None 29 header='infer' if params["regression_metrics"]["header1"] else None
30 column_option = params["regression_metrics"]["column_selector_options_1"]["selected_column_selector_option"] 30 column_option = params["regression_metrics"]["column_selector_options_1"]["selected_column_selector_option"]
31 if column_option == "by_index_number": 31 if column_option in ["by_index_number", "all_but_by_index_number"]:
32 c = params["regression_metrics"]["column_selector_options_1"]["col1"] 32 c = params["regression_metrics"]["column_selector_options_1"]["col1"]
33 else: 33 else:
34 c = None 34 c = None
35 y_t = read_columns( 35 y_t = read_columns(
36 "$regression_metrics.infile1", 36 "$regression_metrics.infile1",
41 parse_dates=True 41 parse_dates=True
42 ) 42 )
43 43
44 header='infer' if params["regression_metrics"]["header2"] else None 44 header='infer' if params["regression_metrics"]["header2"] else None
45 column_option = params["regression_metrics"]["column_selector_options_2"]["selected_column_selector_option2"] 45 column_option = params["regression_metrics"]["column_selector_options_2"]["selected_column_selector_option2"]
46 if column_option == "by_index_number": 46 if column_option in ["by_index_number", "all_but_by_index_number"]:
47 c = params["regression_metrics"]["column_selector_options_2"]["col2"] 47 c = params["regression_metrics"]["column_selector_options_2"]["col2"]
48 else: 48 else:
49 c = None 49 c = None
50 y_p = read_columns( 50 y_p = read_columns(
51 "$regression_metrics.infile2", 51 "$regression_metrics.infile2",
165 </test> 165 </test>
166 <test> 166 <test>
167 <param name="selected_metric" value="median_absolute_error"/> 167 <param name="selected_metric" value="median_absolute_error"/>
168 <param name="infile1" value="regression_test_y.tabular" ftype="tabular"/> 168 <param name="infile1" value="regression_test_y.tabular" ftype="tabular"/>
169 <param name="header1" value="True"/> 169 <param name="header1" value="True"/>
170 <param name="col1" value="1"/> 170 <param name="selected_column_selector_option" value="all_but_by_index_number"/>
171 <param name="col1" value="2"/>
171 <param name="infile2" value="regression_test_y.tabular" ftype="tabular"/> 172 <param name="infile2" value="regression_test_y.tabular" ftype="tabular"/>
172 <param name="header2" value="True"/> 173 <param name="header2" value="True"/>
173 <param name="col2" value="2"/> 174 <param name="col2" value="2"/>
174 <output name="outfile" file="regression_metrics_result05"/> 175 <output name="outfile" file="regression_metrics_result05"/>
175 </test> 176 </test>
178 <param name="infile1" value="regression_test_y.tabular" ftype="tabular"/> 179 <param name="infile1" value="regression_test_y.tabular" ftype="tabular"/>
179 <param name="header1" value="True"/> 180 <param name="header1" value="True"/>
180 <param name="col1" value="1"/> 181 <param name="col1" value="1"/>
181 <param name="infile2" value="regression_test_y.tabular" ftype="tabular"/> 182 <param name="infile2" value="regression_test_y.tabular" ftype="tabular"/>
182 <param name="header2" value="True"/> 183 <param name="header2" value="True"/>
183 <param name="col2" value="2"/> 184 <param name="selected_column_selector_option2" value="all_but_by_index_number"/>
185 <param name="col2" value="1"/>
184 <output name="outfile" file="regression_metrics_result06"/> 186 <output name="outfile" file="regression_metrics_result06"/>
185 </test> 187 </test>
186 </tests> 188 </tests>
187 <help> 189 <help>
188 <![CDATA[ 190 <![CDATA[