Mercurial > repos > bgruening > sklearn_clf_metrics
comparison clf_metrics.xml @ 11:3fb4723f5033 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
author | bgruening |
---|---|
date | Tue, 05 Jun 2018 06:41:54 -0400 |
parents | f361aac67330 |
children | cf91db94623c |
comparison
equal
deleted
inserted
replaced
10:994917fefa8d | 11:3fb4723f5033 |
---|---|
25 | 25 |
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["clf_metrics"].get("header1", None) else None | 29 header='infer' if params["clf_metrics"].get("header1", None) else None |
30 column_option = params["clf_metrics"]["column_selector_options_1"]["selected_column_selector_option"] | |
31 if column_option == "by_index_number": | |
32 c = params["clf_metrics"]["column_selector_options_1"]["col1"] | |
33 else: | |
34 c = None | |
30 y_t = read_columns( | 35 y_t = read_columns( |
31 "$clf_metrics.infile1", | 36 "$clf_metrics.infile1", |
32 "$clf_metrics.col1", | 37 c = c, |
38 c_option = column_option, | |
33 sep='\t', | 39 sep='\t', |
34 header=header, | 40 header=header, |
35 parse_dates=True | 41 parse_dates=True |
36 ) | 42 ) |
37 | 43 |
38 header='infer' if params["clf_metrics"].get("header2", None) else None | 44 header='infer' if params["clf_metrics"].get("header2", None) else None |
45 column_option = params["clf_metrics"]["column_selector_options_2"]["selected_column_selector_option2"] | |
46 if column_option == "by_index_number": | |
47 c = params["clf_metrics"]["column_selector_options_2"]["col2"] | |
48 else: | |
49 c = None | |
39 y_p = read_columns( | 50 y_p = read_columns( |
40 "$clf_metrics.infile2", | 51 "$clf_metrics.infile2", |
41 "$clf_metrics.col2", | 52 c = c, |
53 c_option = column_option, | |
42 sep='\t', | 54 sep='\t', |
43 header=header, | 55 header=header, |
44 parse_dates=True | 56 parse_dates=True |
45 ) | 57 ) |
46 | 58 |