diff nn_classifier.xml @ 9:ae3f9a0f1ec2 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
author bgruening
date Tue, 14 May 2019 17:44:47 -0400
parents a2caa20a1583
children a4afff311e0f
line wrap: on
line diff
--- a/nn_classifier.xml	Sun Dec 30 01:38:27 2018 -0500
+++ b/nn_classifier.xml	Tue May 14 17:44:47 2019 -0400
@@ -19,10 +19,10 @@
 import numpy as np
 import sklearn.neighbors
 import pandas
+import pickle
 
-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: