diff generalized_linear.xml @ 24:d51beacdc6c6 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
author bgruening
date Tue, 14 May 2019 17:57:01 -0400
parents a146c2dd1ac3
children 15ccc4238c50
line wrap: on
line diff
--- a/generalized_linear.xml	Sun Dec 30 01:45:58 2018 -0500
+++ b/generalized_linear.xml	Tue May 14 17:57:01 2019 -0400
@@ -19,11 +19,11 @@
 import numpy as np
 import sklearn.linear_model
 import pandas
+import pickle
 from scipy.io import mmread
 
-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: