{"action":"created","comment":{"url":"https://api.github.com/repos/bgruening/galaxytools/pulls/comments/214107442","pull_request_review_id":151091530,"id":214107442,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDEwNzQ0Mg==","diff_hunk":"@@ -0,0 +1,87 @@\n+<tool id=\"sk_search_plot\" name=\"Plot Visualization\" version=\"@VERSION@\">\n+    <description>of SearchCV results</description>\n+    <macros>\n+        <import>main_macros.xml</import>\n+    </macros>\n+    <expand macro=\"python_requirements\">\n+        <requirement type=\"package\" version=\"3.1.1\">plotly</requirement>\n+    </expand>\n+    <expand macro=\"macro_stdio\"/>\n+    <version_command>echo \"@VERSION@\"</version_command>\n+    <command><![CDATA[\n+    python '$plot_script' '$inputs'\n+]]>\n+    </command>\n+    <configfiles>\n+        <inputs name=\"inputs\"/>\n+        <configfile name=\"plot_script\">\n+<![CDATA[\n+import sys\n+import json\n+import plotly\n+import plotly.graph_objs as go\n+import pandas as pd\n+\n+input_json_path = sys.argv[1]\n+with open(input_json_path, \"r\") as param_handler:\n+    params = json.load(param_handler)\n+\n+df = pd.read_csv(\"$search_results\", sep='\\t', parse_dates=True)\n+\n+dimensions = []\n+for index in params['col_dimensions']:\n+    values = df[df.columns[index-1]]\n+    dimensions.append(\n+        dict(   range = [min(values), max(values)],\n+                label = df.columns[index-1],\n+                values = values\n+        )\n+    )\n+col_score = params['col_score'][0] - 1\n+scores = df[df.columns[col_score]]\n+line = dict(\n+            color = scores,\n+            colorscale = 'Jet',\n+            showscale = True,\n+            reversescale = True,\n+            cmin = min(scores),\n+            cmax = max(scores)\n+)\n+data = [\n+    go.Parcoords(\n+        line = line,\n+        dimensions = dimensions\n+    )\n+]\n+\n+plotly.offline.plot(data, filename = \"output.html\", auto_open=False)\n+\n+\n+]]>\n+        </configfile>\n+    </configfiles>\n+    <inputs>\n+        <param name=\"search_results\" type=\"data\" format=\"tabular\" label=\"Select a result from SearchCV:\"/>\n+        <param name=\"col_dimensions\" multiple=\"true\" type=\"data_column\" data_ref=\"search_results\" use_header_names=\"true\" display=\"checkboxes\" label=\"Select the columns for dimentions:\"/>\n+        <param name=\"col_score\" type=\"data_column\" data_ref=\"search_results\" use_header_names=\"true\" label=\"Select a column containg the score for coloring:\"/>\n+    </inputs>\n+\n+    <outputs>\n+        <data name=\"output\" format=\"html\" from_work_dir=\"output.html\" label=\"Plot of SearchCV result on ${on_string}\"/>","path":"tools/sklearn/search_plot.xml","position":70,"original_position":70,"commit_id":"c07908bcf45eb92c5140df27d15857830af9ce9f","original_commit_id":"c07908bcf45eb92c5140df27d15857830af9ce9f","user":{"login":"qiagu","id":36086881,"node_id":"MDQ6VXNlcjM2MDg2ODgx","avatar_url":"https://avatars2.githubusercontent.com/u/36086881?v=4","gravatar_id":"","url":"https://api.github.com/users/qiagu","html_url":"https://github.com/qiagu","followers_url":"https://api.github.com/users/qiagu/followers","following_url":"https://api.github.com/users/qiagu/following{/other_user}","gists_url":"https://api.github.com/users/qiagu/gists{/gist_id}","starred_url":"https://api.github.com/users/qiagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiagu/subscriptions","organizations_url":"https://api.github.com/users/qiagu/orgs","repos_url":"https://api.github.com/users/qiagu/repos","events_url":"https://api.github.com/users/qiagu/events{/privacy}","received_events_url":"https://api.github.com/users/qiagu/received_events","type":"User","site_admin":false},"body":"I'm not sure. Will discuss with Jeremy","created_at":"2018-08-30T17:02:19Z","updated_at":"2018-08-30T17:02:19Z","html_url":"https://github.com/bgruening/galaxytools/pull/787#discussion_r214107442","pull_request_url":"https://api.github.com/repos/bgruening/galaxytools/pulls/787","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/comments/214107442"},"html":{"href":"https://github.com/bgruening/galaxytools/pull/787#discussion_r214107442"},"pull_request":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/787"}},"in_reply_to_id":213844275},"pull_request":{"url":"https://api.github.com/repos/bgruening/galaxytools/pulls/787","id":211887832,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExODg3ODMy","html_url":"https://github.com/bgruening/galaxytools/pull/787","diff_url":"https://github.com/bgruening/galaxytools/pull/787.diff","patch_url":"https://github.com/bgruening/galaxytools/pull/787.patch","issue_url":"https://api.github.com/repos/bgruening/galaxytools/issues/787","number":787,"state":"open","locked":false,"title":"add a plot visualization tool for searchCV result","user":{"login":"qiagu","id":36086881,"node_id":"MDQ6VXNlcjM2MDg2ODgx","avatar_url":"https://avatars2.githubusercontent.com/u/36086881?v=4","gravatar_id":"","url":"https://api.github.com/users/qiagu","html_url":"https://github.com/qiagu","followers_url":"https://api.github.com/users/qiagu/followers","following_url":"https://api.github.com/users/qiagu/following{/other_user}","gists_url":"https://api.github.com/users/qiagu/gists{/gist_id}","starred_url":"https://api.github.com/users/qiagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiagu/subscriptions","organizations_url":"https://api.github.com/users/qiagu/orgs","repos_url":"https://api.github.com/users/qiagu/repos","events_url":"https://api.github.com/users/qiagu/events{/privacy}","received_events_url":"https://api.github.com/users/qiagu/received_events","type":"User","site_admin":false},"body":"using plotly to produce a parallel coordinates Plot","created_at":"2018-08-29T21:08:00Z","updated_at":"2018-08-30T17:02:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6c3f3c109c06a95f70d5a7013d35f0d3440823d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bgruening/galaxytools/pulls/787/commits","review_comments_url":"https://api.github.com/repos/bgruening/galaxytools/pulls/787/comments","review_comment_url":"https://api.github.com/repos/bgruening/galaxytools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bgruening/galaxytools/issues/787/comments","statuses_url":"https://api.github.com/repos/bgruening/galaxytools/statuses/c07908bcf45eb92c5140df27d15857830af9ce9f","head":{"label":"qiagu:sklearn01","ref":"sklearn01","sha":"c07908bcf45eb92c5140df27d15857830af9ce9f","user":{"login":"qiagu","id":36086881,"node_id":"MDQ6VXNlcjM2MDg2ODgx","avatar_url":"https://avatars2.githubusercontent.com/u/36086881?v=4","gravatar_id":"","url":"https://api.github.com/users/qiagu","html_url":"https://github.com/qiagu","followers_url":"https://api.github.com/users/qiagu/followers","following_url":"https://api.github.com/users/qiagu/following{/other_user}","gists_url":"https://api.github.com/users/qiagu/gists{/gist_id}","starred_url":"https://api.github.com/users/qiagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiagu/subscriptions","organizations_url":"https://api.github.com/users/qiagu/orgs","repos_url":"https://api.github.com/users/qiagu/repos","events_url":"https://api.github.com/users/qiagu/events{/privacy}","received_events_url":"https://api.github.com/users/qiagu/received_events","type":"User","site_admin":false},"repo":{"id":121573356,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE1NzMzNTY=","name":"galaxytools","full_name":"qiagu/galaxytools","owner":{"login":"qiagu","id":36086881,"node_id":"MDQ6VXNlcjM2MDg2ODgx","avatar_url":"https://avatars2.githubusercontent.com/u/36086881?v=4","gravatar_id":"","url":"https://api.github.com/users/qiagu","html_url":"https://github.com/qiagu","followers_url":"https://api.github.com/users/qiagu/followers","following_url":"https://api.github.com/users/qiagu/following{/other_user}","gists_url":"https://api.github.com/users/qiagu/gists{/gist_id}","starred_url":"https://api.github.com/users/qiagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiagu/subscriptions","organizations_url":"https://api.github.com/users/qiagu/orgs","repos_url":"https://api.github.com/users/qiagu/repos","events_url":"https://api.github.com/users/qiagu/events{/privacy}","received_events_url":"https://api.github.com/users/qiagu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qiagu/galaxytools","description":":microscope::books: Galaxy Tool wrappers","fork":true,"url":"https://api.github.com/repos/qiagu/galaxytools","forks_url":"https://api.github.com/repos/qiagu/galaxytools/forks","keys_url":"https://api.github.com/repos/qiagu/galaxytools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qiagu/galaxytools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qiagu/galaxytools/teams","hooks_url":"https://api.github.com/repos/qiagu/galaxytools/hooks","issue_events_url":"https://api.github.com/repos/qiagu/galaxytools/issues/events{/number}","events_url":"https://api.github.com/repos/qiagu/galaxytools/events","assignees_url":"https://api.github.com/repos/qiagu/galaxytools/assignees{/user}","branches_url":"https://api.github.com/repos/qiagu/galaxytools/branches{/branch}","tags_url":"https://api.github.com/repos/qiagu/galaxytools/tags","blobs_url":"https://api.github.com/repos/qiagu/galaxytools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qiagu/galaxytools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qiagu/galaxytools/git/refs{/sha}","trees_url":"https://api.github.com/repos/qiagu/galaxytools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qiagu/galaxytools/statuses/{sha}","languages_url":"https://api.github.com/repos/qiagu/galaxytools/languages","stargazers_url":"https://api.github.com/repos/qiagu/galaxytools/stargazers","contributors_url":"https://api.github.com/repos/qiagu/galaxytools/contributors","subscribers_url":"https://api.github.com/repos/qiagu/galaxytools/subscribers","subscription_url":"https://api.github.com/repos/qiagu/galaxytools/subscription","commits_url":"https://api.github.com/repos/qiagu/galaxytools/commits{/sha}","git_commits_url":"https://api.github.com/repos/qiagu/galaxytools/git/commits{/sha}","comments_url":"https://api.github.com/repos/qiagu/galaxytools/comments{/number}","issue_comment_url":"https://api.github.com/repos/qiagu/galaxytools/issues/comments{/number}","contents_url":"https://api.github.com/repos/qiagu/galaxytools/contents/{+path}","compare_url":"https://api.github.com/repos/qiagu/galaxytools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qiagu/galaxytools/merges","archive_url":"https://api.github.com/repos/qiagu/galaxytools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qiagu/galaxytools/downloads","issues_url":"https://api.github.com/repos/qiagu/galaxytools/issues{/number}","pulls_url":"https://api.github.com/repos/qiagu/galaxytools/pulls{/number}","milestones_url":"https://api.github.com/repos/qiagu/galaxytools/milestones{/number}","notifications_url":"https://api.github.com/repos/qiagu/galaxytools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qiagu/galaxytools/labels{/name}","releases_url":"https://api.github.com/repos/qiagu/galaxytools/releases{/id}","deployments_url":"https://api.github.com/repos/qiagu/galaxytools/deployments","created_at":"2018-02-14T23:28:31Z","updated_at":"2018-07-26T21:05:52Z","pushed_at":"2018-08-29T22:10:40Z","git_url":"git://github.com/qiagu/galaxytools.git","ssh_url":"git@github.com:qiagu/galaxytools.git","clone_url":"https://github.com/qiagu/galaxytools.git","svn_url":"https://github.com/qiagu/galaxytools","homepage":"","size":386843,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bgruening:master","ref":"master","sha":"982bb1c28509ce4c24d9b785ce0a83eaf4a4ef63","user":{"login":"bgruening","id":469983,"node_id":"MDQ6VXNlcjQ2OTk4Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/469983?v=4","gravatar_id":"","url":"https://api.github.com/users/bgruening","html_url":"https://github.com/bgruening","followers_url":"https://api.github.com/users/bgruening/followers","following_url":"https://api.github.com/users/bgruening/following{/other_user}","gists_url":"https://api.github.com/users/bgruening/gists{/gist_id}","starred_url":"https://api.github.com/users/bgruening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgruening/subscriptions","organizations_url":"https://api.github.com/users/bgruening/orgs","repos_url":"https://api.github.com/users/bgruening/repos","events_url":"https://api.github.com/users/bgruening/events{/privacy}","received_events_url":"https://api.github.com/users/bgruening/received_events","type":"User","site_admin":false},"repo":{"id":6942323,"node_id":"MDEwOlJlcG9zaXRvcnk2OTQyMzIz","name":"galaxytools","full_name":"bgruening/galaxytools","owner":{"login":"bgruening","id":469983,"node_id":"MDQ6VXNlcjQ2OTk4Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/469983?v=4","gravatar_id":"","url":"https://api.github.com/users/bgruening","html_url":"https://github.com/bgruening","followers_url":"https://api.github.com/users/bgruening/followers","following_url":"https://api.github.com/users/bgruening/following{/other_user}","gists_url":"https://api.github.com/users/bgruening/gists{/gist_id}","starred_url":"https://api.github.com/users/bgruening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgruening/subscriptions","organizations_url":"https://api.github.com/users/bgruening/orgs","repos_url":"https://api.github.com/users/bgruening/repos","events_url":"https://api.github.com/users/bgruening/events{/privacy}","received_events_url":"https://api.github.com/users/bgruening/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bgruening/galaxytools","description":":microscope::books: Galaxy Tool wrappers","fork":false,"url":"https://api.github.com/repos/bgruening/galaxytools","forks_url":"https://api.github.com/repos/bgruening/galaxytools/forks","keys_url":"https://api.github.com/repos/bgruening/galaxytools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bgruening/galaxytools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bgruening/galaxytools/teams","hooks_url":"https://api.github.com/repos/bgruening/galaxytools/hooks","issue_events_url":"https://api.github.com/repos/bgruening/galaxytools/issues/events{/number}","events_url":"https://api.github.com/repos/bgruening/galaxytools/events","assignees_url":"https://api.github.com/repos/bgruening/galaxytools/assignees{/user}","branches_url":"https://api.github.com/repos/bgruening/galaxytools/branches{/branch}","tags_url":"https://api.github.com/repos/bgruening/galaxytools/tags","blobs_url":"https://api.github.com/repos/bgruening/galaxytools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bgruening/galaxytools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bgruening/galaxytools/git/refs{/sha}","trees_url":"https://api.github.com/repos/bgruening/galaxytools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bgruening/galaxytools/statuses/{sha}","languages_url":"https://api.github.com/repos/bgruening/galaxytools/languages","stargazers_url":"https://api.github.com/repos/bgruening/galaxytools/stargazers","contributors_url":"https://api.github.com/repos/bgruening/galaxytools/contributors","subscribers_url":"https://api.github.com/repos/bgruening/galaxytools/subscribers","subscription_url":"https://api.github.com/repos/bgruening/galaxytools/subscription","commits_url":"https://api.github.com/repos/bgruening/galaxytools/commits{/sha}","git_commits_url":"https://api.github.com/repos/bgruening/galaxytools/git/commits{/sha}","comments_url":"https://api.github.com/repos/bgruening/galaxytools/comments{/number}","issue_comment_url":"https://api.github.com/repos/bgruening/galaxytools/issues/comments{/number}","contents_url":"https://api.github.com/repos/bgruening/galaxytools/contents/{+path}","compare_url":"https://api.github.com/repos/bgruening/galaxytools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bgruening/galaxytools/merges","archive_url":"https://api.github.com/repos/bgruening/galaxytools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bgruening/galaxytools/downloads","issues_url":"https://api.github.com/repos/bgruening/galaxytools/issues{/number}","pulls_url":"https://api.github.com/repos/bgruening/galaxytools/pulls{/number}","milestones_url":"https://api.github.com/repos/bgruening/galaxytools/milestones{/number}","notifications_url":"https://api.github.com/repos/bgruening/galaxytools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bgruening/galaxytools/labels{/name}","releases_url":"https://api.github.com/repos/bgruening/galaxytools/releases{/id}","deployments_url":"https://api.github.com/repos/bgruening/galaxytools/deployments","created_at":"2012-11-30T16:48:44Z","updated_at":"2018-08-28T17:11:31Z","pushed_at":"2018-08-29T21:08:01Z","git_url":"git://github.com/bgruening/galaxytools.git","ssh_url":"git@github.com:bgruening/galaxytools.git","clone_url":"https://github.com/bgruening/galaxytools.git","svn_url":"https://github.com/bgruening/galaxytools","homepage":"","size":385509,"stargazers_count":64,"watchers_count":64,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":111,"mirror_url":null,"archived":false,"open_issues_count":96,"license":null,"forks":111,"open_issues":96,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/787"},"html":{"href":"https://github.com/bgruening/galaxytools/pull/787"},"issue":{"href":"https://api.github.com/repos/bgruening/galaxytools/issues/787"},"comments":{"href":"https://api.github.com/repos/bgruening/galaxytools/issues/787/comments"},"review_comments":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/787/comments"},"review_comment":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/787/commits"},"statuses":{"href":"https://api.github.com/repos/bgruening/galaxytools/statuses/c07908bcf45eb92c5140df27d15857830af9ce9f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"qiagu"}}