Mercurial > repos > bgruening > sklearn_generalized_linear
diff generalized_linear.xml @ 24:b628de0d101f draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit ab963ec9498bd05d2fb2f24f75adb2fccae7958c
author | bgruening |
---|---|
date | Wed, 15 May 2019 07:40:56 -0400 |
parents | e3bc646e63b2 |
children | 9d3a024cf2da |
line wrap: on
line diff
--- a/generalized_linear.xml Sun Dec 30 02:01:29 2018 -0500 +++ b/generalized_linear.xml Wed May 15 07:40:56 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: