Mercurial > repos > bgruening > sklearn_model_validation
diff model_validation.xml @ 3:424d8d21744d draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
author | bgruening |
---|---|
date | Tue, 05 Jun 2018 06:48:01 -0400 |
parents | dd502cb0d567 |
children | 60b8a683ba99 |
line wrap: on
line diff
--- a/model_validation.xml Wed May 30 08:27:01 2018 -0400 +++ b/model_validation.xml Tue Jun 05 06:48:01 2018 -0400 @@ -35,9 +35,15 @@ input_type = params["input_options"]["selected_input"] if input_type=="tabular": header = 'infer' if params["input_options"]["header1"] else None + column_option = params["input_options"]["column_selector_options_1"]["selected_column_selector_option"] + if column_option == "by_index_number": + c = params["input_options"]["column_selector_options_1"]["col1"] + else: + c = None X = read_columns( "$input_options.infile1", - "$input_options.col1", + c = c, + c_option = column_option, sep='\t', header=header, parse_dates=True @@ -46,9 +52,15 @@ X = mmread(open("$input_options.infile1", 'r')) header = 'infer' if params["input_options"]["header2"] else None +column_option = params["input_options"]["column_selector_options_2"]["selected_column_selector_option2"] +if column_option == "by_index_number": + c = params["input_options"]["column_selector_options_2"]["col2"] +else: + c = None y = read_columns( "$input_options.infile2", - "$input_options.col2", + c = c, + c_option = column_option, sep='\t', header=header, parse_dates=True @@ -318,7 +330,7 @@ <param name="has_estimator" value="yes"/> <param name="infile1" value="regression_X.tabular" ftype="tabular"/> <param name="header1" value="true" /> - <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> + <param name="selected_column_selector_option" value="all_columns"/> <param name="infile2" value="regression_y.tabular" ftype="tabular"/> <param name="header2" value="true" /> <param name="col2" value="1"/> @@ -336,10 +348,10 @@ <param name="return_type" value="best_score_"/> <param name="infile1" value="regression_X.tabular" ftype="tabular"/> <param name="header1" value="true" /> - <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> + <param name="selected_column_selector_option" value="all_columns"/> <param name="infile2" value="regression_y.tabular" ftype="tabular"/> <param name="header2" value="true" /> - <param name="col2" value="1"/> + <param name="selected_column_selector_option2" value="all_columns"/> <output name="outfile" file="mv_result07.tabular"/> </test> </tests>