Mercurial > repos > bgruening > sklearn_ensemble
diff ensemble.xml @ 4:0431274c367d draft
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit cea052cf3b8dd4f3620253bd222e126de32e7466
author | bgruening |
---|---|
date | Thu, 22 Mar 2018 13:46:46 -0400 |
parents | 6e6726be0728 |
children | f1761288587e |
line wrap: on
line diff
--- a/ensemble.xml Tue Mar 13 06:30:55 2018 -0400 +++ b/ensemble.xml Thu Mar 22 13:46:46 2018 -0400 @@ -22,32 +22,34 @@ import pickle from scipy.io import mmread +@COLUMNS_FUNCTION@ + input_json_path = sys.argv[1] params = json.load(open(input_json_path, "r")) -@COLUMNS_FUNCTION@ - #if $selected_tasks.selected_task == "train": algorithm = params["selected_tasks"]["selected_algorithms"]["selected_algorithm"] options = params["selected_tasks"]["selected_algorithms"]["options"] input_type = params["selected_tasks"]["selected_algorithms"]["input_options"]["selected_input"] if input_type=="tabular": + header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header1"] else None X = read_columns( "$selected_tasks.selected_algorithms.input_options.infile1", "$selected_tasks.selected_algorithms.input_options.col1", sep='\t', - header=None, + header=header, parse_dates=True ) else: X = mmread(open("$selected_tasks.selected_algorithms.input_options.infile1", 'r')) +header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header2"] else None y = read_columns( "$selected_tasks.selected_algorithms.input_options.infile2", "$selected_tasks.selected_algorithms.input_options.col2", sep='\t', - header=None, + header=header, parse_dates=True )