diff 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
line wrap: on
line diff
--- a/discriminant.xml	Sun Dec 30 02:00:37 2018 -0500
+++ b/discriminant.xml	Wed May 15 07:39:54 2019 -0400
@@ -15,15 +15,15 @@
         <inputs name="inputs"/>
         <configfile name="discriminant_script">
 <![CDATA[
-import sys
 import json
 import numpy as np
+import pandas
+import pickle
 import sklearn.discriminant_analysis
-import pandas
+import sys
 
-with open("$__tool_directory__/sk_whitelist.json", "r") as f:
-    sk_whitelist = json.load(f)
-exec(open("$__tool_directory__/utils.py").read(), globals())
+sys.path.insert(0, '$__tool_directory__')
+from utils import load_model, get_X_y
 
 input_json_path = sys.argv[1]
 with open(input_json_path, "r") as param_handler: