Mercurial > repos > bgruening > sklearn_generalized_linear
diff generalized_linear.xml @ 14:10a8543142fc draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
author | bgruening |
---|---|
date | Tue, 10 Jul 2018 03:13:00 -0400 |
parents | cf635edf37d2 |
children | f0e215cbade3 |
line wrap: on
line diff
--- a/generalized_linear.xml Mon Jul 09 14:33:39 2018 -0400 +++ b/generalized_linear.xml Tue Jul 10 03:13:00 2018 -0400 @@ -44,7 +44,7 @@ classifier_object = pickle.load(open("$selected_tasks.infile_model", 'r')) data = pandas.read_csv("$selected_tasks.infile_data", sep='\t', header=None, index_col=None, parse_dates=True, encoding=None, tupleize_cols=False ) prediction = classifier_object.predict(data) -prediction_df = pandas.DataFrame(prediction) +prediction_df = pandas.DataFrame(prediction, columns=["predicted"]) res = pandas.concat([data, prediction_df], axis=1) res.to_csv(path_or_buf = "$outfile_predict", sep="\t", index=False, header=None) #end if