diff ensemble.xml @ 24:e94395c672bd draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
author bgruening
date Tue, 14 May 2019 18:15:12 -0400
parents 39ae276e75d9
children dde0f1654d18
line wrap: on
line diff
--- a/ensemble.xml	Sun Dec 30 01:56:11 2018 -0500
+++ b/ensemble.xml	Tue May 14 18:15:12 2019 -0400
@@ -14,17 +14,18 @@
         <inputs name="inputs"/>
         <configfile name="ensemble_script">
 <![CDATA[
-import sys
-import os
 import json
 import numpy as np
+import pandas
+import pickle
+from scipy.io import mmread
 import sklearn.ensemble
-import pandas
-from scipy.io import mmread
+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
+
+N_JOBS = int(__import__('os').environ.get('GALAXY_SLOTS', 1))
 
 # Get inputs, outputs.
 input_json_path = sys.argv[1]