Mercurial > repos > bgruening > sklearn_feature_selection
diff feature_selection.xml @ 9:537c6763c018 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
author | bgruening |
---|---|
date | Fri, 13 Jul 2018 03:55:31 -0400 |
parents | b0d554b38770 |
children | 96f9b73327f2 |
line wrap: on
line diff
--- a/feature_selection.xml Tue Jul 10 03:11:48 2018 -0400 +++ b/feature_selection.xml Fri Jul 13 03:55:31 2018 -0400 @@ -28,7 +28,8 @@ @FEATURE_SELECTOR_FUNCTION@ input_json_path = sys.argv[1] -params = json.load(open(input_json_path, "r")) +with open(input_json_path, "r") as param_handler: + params = json.load(param_handler) ## Read features features_has_header = params["input_options"]["header1"] @@ -50,7 +51,7 @@ parse_dates=True ) else: - X = mmread(open("$input_options.infile1", 'r')) + X = mmread("$input_options.infile1") ## Read labels header = 'infer' if params["input_options"]["header2"] else None