comparison discriminant.xml @ 24:5552eda109bd draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit ab963ec9498bd05d2fb2f24f75adb2fccae7958c
author bgruening
date Wed, 15 May 2019 07:39:54 -0400
parents 75bcb7c19fcf
children 9bb505eafac9
comparison
equal deleted inserted replaced
23:75bcb7c19fcf 24:5552eda109bd
13 </command> 13 </command>
14 <configfiles> 14 <configfiles>
15 <inputs name="inputs"/> 15 <inputs name="inputs"/>
16 <configfile name="discriminant_script"> 16 <configfile name="discriminant_script">
17 <![CDATA[ 17 <![CDATA[
18 import sys
19 import json 18 import json
20 import numpy as np 19 import numpy as np
20 import pandas
21 import pickle
21 import sklearn.discriminant_analysis 22 import sklearn.discriminant_analysis
22 import pandas 23 import sys
23 24
24 with open("$__tool_directory__/sk_whitelist.json", "r") as f: 25 sys.path.insert(0, '$__tool_directory__')
25 sk_whitelist = json.load(f) 26 from utils import load_model, get_X_y
26 exec(open("$__tool_directory__/utils.py").read(), globals())
27 27
28 input_json_path = sys.argv[1] 28 input_json_path = sys.argv[1]
29 with open(input_json_path, "r") as param_handler: 29 with open(input_json_path, "r") as param_handler:
30 params = json.load(param_handler) 30 params = json.load(param_handler)
31 31