comparison pre_process.xml @ 24:9e43ee712723 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
author bgruening
date Tue, 14 May 2019 18:19:35 -0400
parents d6b8103c909c
children 685046e0381a
comparison
equal deleted inserted replaced
23:d6b8103c909c 24:9e43ee712723
21 import pickle 21 import pickle
22 from scipy.io import mmread 22 from scipy.io import mmread
23 from scipy.io import mmwrite 23 from scipy.io import mmwrite
24 from sklearn import preprocessing 24 from sklearn import preprocessing
25 25
26 exec(open("$__tool_directory__/utils.py").read(), globals()) 26 sys.path.insert(0, '$__tool_directory__')
27 from utils import read_columns
27 28
28 input_json_path = sys.argv[1] 29 input_json_path = sys.argv[1]
29 with open(input_json_path, "r") as param_handler: 30 with open(input_json_path, "r") as param_handler:
30 params = json.load(param_handler) 31 params = json.load(param_handler)
31 32
45 sep='\t', 46 sep='\t',
46 header=header, 47 header=header,
47 parse_dates=True, 48 parse_dates=True,
48 encoding=None, 49 encoding=None,
49 index_col=None, 50 index_col=None,
50 tupleize_cols=False 51 tupleize_cols=False).astype(float)
51 )
52 #end if 52 #end if
53 53
54 preprocessor = params["input_type"]["pre_processors"]["selected_pre_processor"] 54 preprocessor = params["input_type"]["pre_processors"]["selected_pre_processor"]
55 options = params["input_type"]["pre_processors"]["options"] 55 options = params["input_type"]["pre_processors"]["options"]
56 56