Mercurial > repos > bgruening > sklearn_feature_selection
diff feature_selection.xml @ 15:026667802750 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
author | bgruening |
---|---|
date | Sat, 29 Sep 2018 07:30:44 -0400 |
parents | dc411a215138 |
children | 2bbbac61e48d |
line wrap: on
line diff
--- a/feature_selection.xml Thu Aug 23 16:16:26 2018 -0400 +++ b/feature_selection.xml Sat Sep 29 07:30:44 2018 -0400 @@ -21,8 +21,9 @@ import pandas import sklearn.feature_selection -execfile("$__tool_directory__/sk_whitelist.py") -execfile("$__tool_directory__/utils.py", globals()) +with open("$__tool_directory__/sk_whitelist.json", "r") as f: + sk_whitelist = json.load(f) +exec(open("$__tool_directory__/utils.py").read(), globals()) safe_eval = SafeEval()