{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/poldrack/myconnectome-vm/pulls/5","id":36092753,"html_url":"https://github.com/poldrack/myconnectome-vm/pull/5","diff_url":"https://github.com/poldrack/myconnectome-vm/pull/5.diff","patch_url":"https://github.com/poldrack/myconnectome-vm/pull/5.patch","issue_url":"https://api.github.com/repos/poldrack/myconnectome-vm/issues/5","number":5,"state":"closed","locked":false,"title":"Update web interface with \"Start Analysis\" Button","user":{"login":"vsoch","id":814322,"avatar_url":"https://avatars.githubusercontent.com/u/814322?v=3","gravatar_id":"","url":"https://api.github.com/users/vsoch","html_url":"https://github.com/vsoch","followers_url":"https://api.github.com/users/vsoch/followers","following_url":"https://api.github.com/users/vsoch/following{/other_user}","gists_url":"https://api.github.com/users/vsoch/gists{/gist_id}","starred_url":"https://api.github.com/users/vsoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsoch/subscriptions","organizations_url":"https://api.github.com/users/vsoch/orgs","repos_url":"https://api.github.com/users/vsoch/repos","events_url":"https://api.github.com/users/vsoch/events{/privacy}","received_events_url":"https://api.github.com/users/vsoch/received_events","type":"User","site_admin":false},"body":"I was able to do this sooner rather than later because it looks like the raw HCP data is still in the process of being copied.\r\n\r\n- Add a \"Run Analysis\" button to the main interface. This button is active only before analyses are started, and this status is determined by the existence of a \".started\" file in /home/vagrant/myconnectome. The button works by calling an application url \"start\" that only serves to execute the run_everything.py, and then write the \".started\" file and redirect to the main page.  When this has been done, the \"Run Analysis\" button changes to a disabled \"Analysis is Running.\" button.\r\n- The page checks for the count of analyses that are finished (based on existence of the result files), and when the count of finished == count of total possible, the button changes to \"Analysis is Complete.\"\r\n- The base page is now the main MyConnectome analysis page. This was much harder than I anticipated - there was no way I could figure out to generate directory listings for a custom set of folders (many errors were propogated for the different versions of this that I tried) and changing the app.route to '/' did not work, as the plugin seems to always want the root to be a listing. What worked was creating a symbolic link between the myconnectome folder and a \"results\" folder in /var/www, and then telling the plugin that the root was the results folder.\r\n\r\nI've tested that it works to start and run the analyses, and I also tested locally that the button changes when analyses finish, although I have not tested this last part from a fresh install (for example, what if there are issues with writing to stdout when being run in this fashion?). It is running now and I will edit this PR if any other issues come up!","created_at":"2015-05-23T19:54:56Z","updated_at":"2015-05-25T15:08:30Z","closed_at":"2015-05-25T15:08:30Z","merged_at":"2015-05-25T15:08:30Z","merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/poldrack/myconnectome-vm/pulls/5/commits","review_comments_url":"https://api.github.com/repos/poldrack/myconnectome-vm/pulls/5/comments","review_comment_url":"https://api.github.com/repos/poldrack/myconnectome-vm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poldrack/myconnectome-vm/issues/5/comments","statuses_url":"https://api.github.com/repos/poldrack/myconnectome-vm/statuses/1a54e5133e6e3daf1eb4ea0bf9ef21dd9d2c747f","head":{"label":"vsoch:update/flask","ref":"update/flask","sha":"1a54e5133e6e3daf1eb4ea0bf9ef21dd9d2c747f","user":{"login":"vsoch","id":814322,"avatar_url":"https://avatars.githubusercontent.com/u/814322?v=3","gravatar_id":"","url":"https://api.github.com/users/vsoch","html_url":"https://github.com/vsoch","followers_url":"https://api.github.com/users/vsoch/followers","following_url":"https://api.github.com/users/vsoch/following{/other_user}","gists_url":"https://api.github.com/users/vsoch/gists{/gist_id}","starred_url":"https://api.github.com/users/vsoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsoch/subscriptions","organizations_url":"https://api.github.com/users/vsoch/orgs","repos_url":"https://api.github.com/users/vsoch/repos","events_url":"https://api.github.com/users/vsoch/events{/privacy}","received_events_url":"https://api.github.com/users/vsoch/received_events","type":"User","site_admin":false},"repo":{"id":36026809,"name":"myconnectome-vm","full_name":"vsoch/myconnectome-vm","owner":{"login":"vsoch","id":814322,"avatar_url":"https://avatars.githubusercontent.com/u/814322?v=3","gravatar_id":"","url":"https://api.github.com/users/vsoch","html_url":"https://github.com/vsoch","followers_url":"https://api.github.com/users/vsoch/followers","following_url":"https://api.github.com/users/vsoch/following{/other_user}","gists_url":"https://api.github.com/users/vsoch/gists{/gist_id}","starred_url":"https://api.github.com/users/vsoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsoch/subscriptions","organizations_url":"https://api.github.com/users/vsoch/orgs","repos_url":"https://api.github.com/users/vsoch/repos","events_url":"https://api.github.com/users/vsoch/events{/privacy}","received_events_url":"https://api.github.com/users/vsoch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vsoch/myconnectome-vm","description":"Virtual machine setup for MyConnectome data analysis","fork":true,"url":"https://api.github.com/repos/vsoch/myconnectome-vm","forks_url":"https://api.github.com/repos/vsoch/myconnectome-vm/forks","keys_url":"https://api.github.com/repos/vsoch/myconnectome-vm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vsoch/myconnectome-vm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vsoch/myconnectome-vm/teams","hooks_url":"https://api.github.com/repos/vsoch/myconnectome-vm/hooks","issue_events_url":"https://api.github.com/repos/vsoch/myconnectome-vm/issues/events{/number}","events_url":"https://api.github.com/repos/vsoch/myconnectome-vm/events","assignees_url":"https://api.github.com/repos/vsoch/myconnectome-vm/assignees{/user}","branches_url":"https://api.github.com/repos/vsoch/myconnectome-vm/branches{/branch}","tags_url":"https://api.github.com/repos/vsoch/myconnectome-vm/tags","blobs_url":"https://api.github.com/repos/vsoch/myconnectome-vm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vsoch/myconnectome-vm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vsoch/myconnectome-vm/git/refs{/sha}","trees_url":"https://api.github.com/repos/vsoch/myconnectome-vm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vsoch/myconnectome-vm/statuses/{sha}","languages_url":"https://api.github.com/repos/vsoch/myconnectome-vm/languages","stargazers_url":"https://api.github.com/repos/vsoch/myconnectome-vm/stargazers","contributors_url":"https://api.github.com/repos/vsoch/myconnectome-vm/contributors","subscribers_url":"https://api.github.com/repos/vsoch/myconnectome-vm/subscribers","subscription_url":"https://api.github.com/repos/vsoch/myconnectome-vm/subscription","commits_url":"https://api.github.com/repos/vsoch/myconnectome-vm/commits{/sha}","git_commits_url":"https://api.github.com/repos/vsoch/myconnectome-vm/git/commits{/sha}","comments_url":"https://api.github.com/repos/vsoch/myconnectome-vm/comments{/number}","issue_comment_url":"https://api.github.com/repos/vsoch/myconnectome-vm/issues/comments{/number}","contents_url":"https://api.github.com/repos/vsoch/myconnectome-vm/contents/{+path}","compare_url":"https://api.github.com/repos/vsoch/myconnectome-vm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vsoch/myconnectome-vm/merges","archive_url":"https://api.github.com/repos/vsoch/myconnectome-vm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vsoch/myconnectome-vm/downloads","issues_url":"https://api.github.com/repos/vsoch/myconnectome-vm/issues{/number}","pulls_url":"https://api.github.com/repos/vsoch/myconnectome-vm/pulls{/number}","milestones_url":"https://api.github.com/repos/vsoch/myconnectome-vm/milestones{/number}","notifications_url":"https://api.github.com/repos/vsoch/myconnectome-vm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vsoch/myconnectome-vm/labels{/name}","releases_url":"https://api.github.com/repos/vsoch/myconnectome-vm/releases{/id}","created_at":"2015-05-21T17:19:46Z","updated_at":"2015-05-21T14:28:40Z","pushed_at":"2015-05-24T19:16:59Z","git_url":"git://github.com/vsoch/myconnectome-vm.git","ssh_url":"git@github.com:vsoch/myconnectome-vm.git","clone_url":"https://github.com/vsoch/myconnectome-vm.git","svn_url":"https://github.com/vsoch/myconnectome-vm","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"poldrack:master","ref":"master","sha":"bfe09a3d856af174f73e4aec1f34ffd06f716b07","user":{"login":"poldrack","id":871056,"avatar_url":"https://avatars.githubusercontent.com/u/871056?v=3","gravatar_id":"","url":"https://api.github.com/users/poldrack","html_url":"https://github.com/poldrack","followers_url":"https://api.github.com/users/poldrack/followers","following_url":"https://api.github.com/users/poldrack/following{/other_user}","gists_url":"https://api.github.com/users/poldrack/gists{/gist_id}","starred_url":"https://api.github.com/users/poldrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poldrack/subscriptions","organizations_url":"https://api.github.com/users/poldrack/orgs","repos_url":"https://api.github.com/users/poldrack/repos","events_url":"https://api.github.com/users/poldrack/events{/privacy}","received_events_url":"https://api.github.com/users/poldrack/received_events","type":"User","site_admin":false},"repo":{"id":36017440,"name":"myconnectome-vm","full_name":"poldrack/myconnectome-vm","owner":{"login":"poldrack","id":871056,"avatar_url":"https://avatars.githubusercontent.com/u/871056?v=3","gravatar_id":"","url":"https://api.github.com/users/poldrack","html_url":"https://github.com/poldrack","followers_url":"https://api.github.com/users/poldrack/followers","following_url":"https://api.github.com/users/poldrack/following{/other_user}","gists_url":"https://api.github.com/users/poldrack/gists{/gist_id}","starred_url":"https://api.github.com/users/poldrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poldrack/subscriptions","organizations_url":"https://api.github.com/users/poldrack/orgs","repos_url":"https://api.github.com/users/poldrack/repos","events_url":"https://api.github.com/users/poldrack/events{/privacy}","received_events_url":"https://api.github.com/users/poldrack/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/poldrack/myconnectome-vm","description":"Virtual machine setup for MyConnectome data analysis","fork":false,"url":"https://api.github.com/repos/poldrack/myconnectome-vm","forks_url":"https://api.github.com/repos/poldrack/myconnectome-vm/forks","keys_url":"https://api.github.com/repos/poldrack/myconnectome-vm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poldrack/myconnectome-vm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poldrack/myconnectome-vm/teams","hooks_url":"https://api.github.com/repos/poldrack/myconnectome-vm/hooks","issue_events_url":"https://api.github.com/repos/poldrack/myconnectome-vm/issues/events{/number}","events_url":"https://api.github.com/repos/poldrack/myconnectome-vm/events","assignees_url":"https://api.github.com/repos/poldrack/myconnectome-vm/assignees{/user}","branches_url":"https://api.github.com/repos/poldrack/myconnectome-vm/branches{/branch}","tags_url":"https://api.github.com/repos/poldrack/myconnectome-vm/tags","blobs_url":"https://api.github.com/repos/poldrack/myconnectome-vm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poldrack/myconnectome-vm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poldrack/myconnectome-vm/git/refs{/sha}","trees_url":"https://api.github.com/repos/poldrack/myconnectome-vm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poldrack/myconnectome-vm/statuses/{sha}","languages_url":"https://api.github.com/repos/poldrack/myconnectome-vm/languages","stargazers_url":"https://api.github.com/repos/poldrack/myconnectome-vm/stargazers","contributors_url":"https://api.github.com/repos/poldrack/myconnectome-vm/contributors","subscribers_url":"https://api.github.com/repos/poldrack/myconnectome-vm/subscribers","subscription_url":"https://api.github.com/repos/poldrack/myconnectome-vm/subscription","commits_url":"https://api.github.com/repos/poldrack/myconnectome-vm/commits{/sha}","git_commits_url":"https://api.github.com/repos/poldrack/myconnectome-vm/git/commits{/sha}","comments_url":"https://api.github.com/repos/poldrack/myconnectome-vm/comments{/number}","issue_comment_url":"https://api.github.com/repos/poldrack/myconnectome-vm/issues/comments{/number}","contents_url":"https://api.github.com/repos/poldrack/myconnectome-vm/contents/{+path}","compare_url":"https://api.github.com/repos/poldrack/myconnectome-vm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poldrack/myconnectome-vm/merges","archive_url":"https://api.github.com/repos/poldrack/myconnectome-vm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poldrack/myconnectome-vm/downloads","issues_url":"https://api.github.com/repos/poldrack/myconnectome-vm/issues{/number}","pulls_url":"https://api.github.com/repos/poldrack/myconnectome-vm/pulls{/number}","milestones_url":"https://api.github.com/repos/poldrack/myconnectome-vm/milestones{/number}","notifications_url":"https://api.github.com/repos/poldrack/myconnectome-vm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poldrack/myconnectome-vm/labels{/name}","releases_url":"https://api.github.com/repos/poldrack/myconnectome-vm/releases{/id}","created_at":"2015-05-21T14:28:40Z","updated_at":"2015-05-21T14:28:40Z","pushed_at":"2015-05-25T15:08:30Z","git_url":"git://github.com/poldrack/myconnectome-vm.git","ssh_url":"git@github.com:poldrack/myconnectome-vm.git","clone_url":"https://github.com/poldrack/myconnectome-vm.git","svn_url":"https://github.com/poldrack/myconnectome-vm","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poldrack/myconnectome-vm/pulls/5"},"html":{"href":"https://github.com/poldrack/myconnectome-vm/pull/5"},"issue":{"href":"https://api.github.com/repos/poldrack/myconnectome-vm/issues/5"},"comments":{"href":"https://api.github.com/repos/poldrack/myconnectome-vm/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/poldrack/myconnectome-vm/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/poldrack/myconnectome-vm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poldrack/myconnectome-vm/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/poldrack/myconnectome-vm/statuses/1a54e5133e6e3daf1eb4ea0bf9ef21dd9d2c747f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"poldrack","id":871056,"avatar_url":"https://avatars.githubusercontent.com/u/871056?v=3","gravatar_id":"","url":"https://api.github.com/users/poldrack","html_url":"https://github.com/poldrack","followers_url":"https://api.github.com/users/poldrack/followers","following_url":"https://api.github.com/users/poldrack/following{/other_user}","gists_url":"https://api.github.com/users/poldrack/gists{/gist_id}","starred_url":"https://api.github.com/users/poldrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poldrack/subscriptions","organizations_url":"https://api.github.com/users/poldrack/orgs","repos_url":"https://api.github.com/users/poldrack/repos","events_url":"https://api.github.com/users/poldrack/events{/privacy}","received_events_url":"https://api.github.com/users/poldrack/received_events","type":"User","site_admin":false},"comments":6,"review_comments":0,"commits":11,"additions":71,"deletions":34,"changed_files":1}}