diff clf_metrics.xml @ 8:f361aac67330 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2e1e78576b38110cf5b1f2ed83b08b9c3a6cbfee
author bgruening
date Sat, 28 Apr 2018 18:04:42 -0400
parents 6d1b3653d6a6
children 3fb4723f5033
line wrap: on
line diff
--- a/clf_metrics.xml	Thu Apr 12 08:20:14 2018 -0400
+++ b/clf_metrics.xml	Sat Apr 28 18:04:42 2018 -0400
@@ -26,19 +26,21 @@
 input_json_path = sys.argv[1]
 params = json.load(open(input_json_path, "r"))
 
-
+header='infer' if params["clf_metrics"].get("header1", None) else None
 y_t = read_columns(
         "$clf_metrics.infile1",
         "$clf_metrics.col1",
         sep='\t',
-        header=None,
+        header=header,
         parse_dates=True
 )
+
+header='infer' if params["clf_metrics"].get("header2", None) else None
 y_p = read_columns(
         "$clf_metrics.infile2",
         "$clf_metrics.col2",
         sep='\t',
-        header=None,
+        header=header,
         parse_dates=True
 )