{"action":"created","comment":{"url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments/52062947","id":52062947,"diff_hunk":"@@ -140,25 +149,72 @@ genotet.BindingView = function(viewName, params) {\n     .on('genotet.addTrack', function() {\n       var track = this.data.tracks.slice(-1).pop();\n       this.loader.loadFullTrack(this.data.tracks.length, track.fileName,\n-        this.data.chr);\n+        this.data.chr, true);\n     }.bind(this))\n     .on('genotet.removeTrack', function(event, trackIndex) {\n       this.data.tracks.splice(trackIndex, 1);\n       this.renderer.render();\n       this.panel.updateTracks();\n     }.bind(this))\n-    .on('genotet.gene', function(event, data) {\n+    .on('genotet.updateTrack', function(event, data) {\n       this.data.tracks[data.trackIndex].fileName = data.fileName;\n       this.loader.loadFullTrack(data.trackIndex, data.fileName,\n-        this.data.chr);\n+        this.data.chr, false);\n+    }.bind(this))\n+    .on('genotet.loadBindingList', function() {\n+      this.loader.loadBindingList();\n     }.bind(this));\n \n   $(this.loader)\n     .on('genotet.chr', function(event, chr) {\n       this.panel.updateChr(chr);\n     }.bind(this))\n-    .on('genotet.track', function() {\n+    .on('genotet.addPanelTrack', function() {\n       this.panel.updateTracks();\n+    }.bind(this))\n+    .on('genotet.updateTrackList', function() {\n+      this.panel.updateTrackList();\n+    }.bind(this));\n+\n+  // Set up link callbacks.\n+  $(this)\n+    .on('genotet.updateTrack', function(event, data) {\n+      var sourceGene = data.id.split(',')[0];\n+      var mappingFileName = genotet.data.mappingFile['gene-binding'];\n+      if (mappingFileName == 'Direct Mapping') {\n+        var fileName = sourceGene + '.bw';\n+        this.signal('updateLinkTrack', fileName);","path":"src/components/binding/binding.js","position":71,"original_position":71,"commit_id":"0a8daa14afa7b5bc23d50b62e8939cfd190d3380","original_commit_id":"0a8daa14afa7b5bc23d50b62e8939cfd190d3380","user":{"login":"yubowenok","id":1314429,"avatar_url":"https://avatars.githubusercontent.com/u/1314429?v=3","gravatar_id":"","url":"https://api.github.com/users/yubowenok","html_url":"https://github.com/yubowenok","followers_url":"https://api.github.com/users/yubowenok/followers","following_url":"https://api.github.com/users/yubowenok/following{/other_user}","gists_url":"https://api.github.com/users/yubowenok/gists{/gist_id}","starred_url":"https://api.github.com/users/yubowenok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yubowenok/subscriptions","organizations_url":"https://api.github.com/users/yubowenok/orgs","repos_url":"https://api.github.com/users/yubowenok/repos","events_url":"https://api.github.com/users/yubowenok/events{/privacy}","received_events_url":"https://api.github.com/users/yubowenok/received_events","type":"User","site_admin":false},"body":"Are you firing an event to the object itself? You can call handler directly.","created_at":"2016-02-05T19:40:30Z","updated_at":"2016-02-05T19:40:30Z","html_url":"https://github.com/ViDA-NYU/genotet/pull/78#discussion_r52062947","pull_request_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments/52062947"},"html":{"href":"https://github.com/ViDA-NYU/genotet/pull/78#discussion_r52062947"},"pull_request":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/78","id":57005567,"html_url":"https://github.com/ViDA-NYU/genotet/pull/78","diff_url":"https://github.com/ViDA-NYU/genotet/pull/78.diff","patch_url":"https://github.com/ViDA-NYU/genotet/pull/78.patch","issue_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/78","number":78,"state":"open","locked":false,"title":"Implemented preset layout and link query.","user":{"login":"Shauro","id":9913788,"avatar_url":"https://avatars.githubusercontent.com/u/9913788?v=3","gravatar_id":"","url":"https://api.github.com/users/Shauro","html_url":"https://github.com/Shauro","followers_url":"https://api.github.com/users/Shauro/followers","following_url":"https://api.github.com/users/Shauro/following{/other_user}","gists_url":"https://api.github.com/users/Shauro/gists{/gist_id}","starred_url":"https://api.github.com/users/Shauro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shauro/subscriptions","organizations_url":"https://api.github.com/users/Shauro/orgs","repos_url":"https://api.github.com/users/Shauro/repos","events_url":"https://api.github.com/users/Shauro/events{/privacy}","received_events_url":"https://api.github.com/users/Shauro/received_events","type":"User","site_admin":false},"body":"Implemented #70.\r\nImplemented link query. (Front end part.)\r\n@djasmine will complete the rest part of link query. I leave the query part with fake data temporarily and assigned a to do list to him.","created_at":"2016-01-24T15:24:15Z","updated_at":"2016-02-05T19:40:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60cd99f9d0da998a5ea6550a8fbc5a5a460d9cc7","assignee":null,"milestone":{"url":"https://api.github.com/repos/ViDA-NYU/genotet/milestones/6","html_url":"https://github.com/ViDA-NYU/genotet/milestones/Release%20Feb%201,%20Trial%20version","labels_url":"https://api.github.com/repos/ViDA-NYU/genotet/milestones/6/labels","id":1405638,"number":6,"title":"Release Feb 1, Trial version","description":"All components functional and can be sent to biologists for try-outs, testing and comments.","creator":{"login":"yubowenok","id":1314429,"avatar_url":"https://avatars.githubusercontent.com/u/1314429?v=3","gravatar_id":"","url":"https://api.github.com/users/yubowenok","html_url":"https://github.com/yubowenok","followers_url":"https://api.github.com/users/yubowenok/followers","following_url":"https://api.github.com/users/yubowenok/following{/other_user}","gists_url":"https://api.github.com/users/yubowenok/gists{/gist_id}","starred_url":"https://api.github.com/users/yubowenok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yubowenok/subscriptions","organizations_url":"https://api.github.com/users/yubowenok/orgs","repos_url":"https://api.github.com/users/yubowenok/repos","events_url":"https://api.github.com/users/yubowenok/events{/privacy}","received_events_url":"https://api.github.com/users/yubowenok/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":44,"state":"open","created_at":"2015-11-10T23:56:00Z","updated_at":"2016-02-05T08:19:59Z","due_on":"2016-01-31T16:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/78/commits","review_comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/78/comments","review_comment_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/78/comments","statuses_url":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/0a8daa14afa7b5bc23d50b62e8939cfd190d3380","head":{"label":"ViDA-NYU:liana/preset","ref":"liana/preset","sha":"0a8daa14afa7b5bc23d50b62e8939cfd190d3380","user":{"login":"ViDA-NYU","id":8114708,"avatar_url":"https://avatars.githubusercontent.com/u/8114708?v=3","gravatar_id":"","url":"https://api.github.com/users/ViDA-NYU","html_url":"https://github.com/ViDA-NYU","followers_url":"https://api.github.com/users/ViDA-NYU/followers","following_url":"https://api.github.com/users/ViDA-NYU/following{/other_user}","gists_url":"https://api.github.com/users/ViDA-NYU/gists{/gist_id}","starred_url":"https://api.github.com/users/ViDA-NYU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViDA-NYU/subscriptions","organizations_url":"https://api.github.com/users/ViDA-NYU/orgs","repos_url":"https://api.github.com/users/ViDA-NYU/repos","events_url":"https://api.github.com/users/ViDA-NYU/events{/privacy}","received_events_url":"https://api.github.com/users/ViDA-NYU/received_events","type":"Organization","site_admin":false},"repo":{"id":24764416,"name":"genotet","full_name":"ViDA-NYU/genotet","owner":{"login":"ViDA-NYU","id":8114708,"avatar_url":"https://avatars.githubusercontent.com/u/8114708?v=3","gravatar_id":"","url":"https://api.github.com/users/ViDA-NYU","html_url":"https://github.com/ViDA-NYU","followers_url":"https://api.github.com/users/ViDA-NYU/followers","following_url":"https://api.github.com/users/ViDA-NYU/following{/other_user}","gists_url":"https://api.github.com/users/ViDA-NYU/gists{/gist_id}","starred_url":"https://api.github.com/users/ViDA-NYU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViDA-NYU/subscriptions","organizations_url":"https://api.github.com/users/ViDA-NYU/orgs","repos_url":"https://api.github.com/users/ViDA-NYU/repos","events_url":"https://api.github.com/users/ViDA-NYU/events{/privacy}","received_events_url":"https://api.github.com/users/ViDA-NYU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ViDA-NYU/genotet","description":"Genotet: An Interactive Web-based Visual Exploration Framework to Support Validation of Gene Regulatory Networks","fork":false,"url":"https://api.github.com/repos/ViDA-NYU/genotet","forks_url":"https://api.github.com/repos/ViDA-NYU/genotet/forks","keys_url":"https://api.github.com/repos/ViDA-NYU/genotet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ViDA-NYU/genotet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ViDA-NYU/genotet/teams","hooks_url":"https://api.github.com/repos/ViDA-NYU/genotet/hooks","issue_events_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/events{/number}","events_url":"https://api.github.com/repos/ViDA-NYU/genotet/events","assignees_url":"https://api.github.com/repos/ViDA-NYU/genotet/assignees{/user}","branches_url":"https://api.github.com/repos/ViDA-NYU/genotet/branches{/branch}","tags_url":"https://api.github.com/repos/ViDA-NYU/genotet/tags","blobs_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/{sha}","languages_url":"https://api.github.com/repos/ViDA-NYU/genotet/languages","stargazers_url":"https://api.github.com/repos/ViDA-NYU/genotet/stargazers","contributors_url":"https://api.github.com/repos/ViDA-NYU/genotet/contributors","subscribers_url":"https://api.github.com/repos/ViDA-NYU/genotet/subscribers","subscription_url":"https://api.github.com/repos/ViDA-NYU/genotet/subscription","commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ViDA-NYU/genotet/contents/{+path}","compare_url":"https://api.github.com/repos/ViDA-NYU/genotet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ViDA-NYU/genotet/merges","archive_url":"https://api.github.com/repos/ViDA-NYU/genotet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ViDA-NYU/genotet/downloads","issues_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues{/number}","pulls_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls{/number}","milestones_url":"https://api.github.com/repos/ViDA-NYU/genotet/milestones{/number}","notifications_url":"https://api.github.com/repos/ViDA-NYU/genotet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ViDA-NYU/genotet/labels{/name}","releases_url":"https://api.github.com/repos/ViDA-NYU/genotet/releases{/id}","deployments_url":"https://api.github.com/repos/ViDA-NYU/genotet/deployments","created_at":"2014-10-03T15:55:16Z","updated_at":"2016-01-11T19:18:29Z","pushed_at":"2016-02-05T09:25:50Z","git_url":"git://github.com/ViDA-NYU/genotet.git","ssh_url":"git@github.com:ViDA-NYU/genotet.git","clone_url":"https://github.com/ViDA-NYU/genotet.git","svn_url":"https://github.com/ViDA-NYU/genotet","homepage":null,"size":1719,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":4,"default_branch":"refactor"}},"base":{"label":"ViDA-NYU:refactor","ref":"refactor","sha":"319da6896f5eaca1f61fd45c2367fa0bc01995ee","user":{"login":"ViDA-NYU","id":8114708,"avatar_url":"https://avatars.githubusercontent.com/u/8114708?v=3","gravatar_id":"","url":"https://api.github.com/users/ViDA-NYU","html_url":"https://github.com/ViDA-NYU","followers_url":"https://api.github.com/users/ViDA-NYU/followers","following_url":"https://api.github.com/users/ViDA-NYU/following{/other_user}","gists_url":"https://api.github.com/users/ViDA-NYU/gists{/gist_id}","starred_url":"https://api.github.com/users/ViDA-NYU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViDA-NYU/subscriptions","organizations_url":"https://api.github.com/users/ViDA-NYU/orgs","repos_url":"https://api.github.com/users/ViDA-NYU/repos","events_url":"https://api.github.com/users/ViDA-NYU/events{/privacy}","received_events_url":"https://api.github.com/users/ViDA-NYU/received_events","type":"Organization","site_admin":false},"repo":{"id":24764416,"name":"genotet","full_name":"ViDA-NYU/genotet","owner":{"login":"ViDA-NYU","id":8114708,"avatar_url":"https://avatars.githubusercontent.com/u/8114708?v=3","gravatar_id":"","url":"https://api.github.com/users/ViDA-NYU","html_url":"https://github.com/ViDA-NYU","followers_url":"https://api.github.com/users/ViDA-NYU/followers","following_url":"https://api.github.com/users/ViDA-NYU/following{/other_user}","gists_url":"https://api.github.com/users/ViDA-NYU/gists{/gist_id}","starred_url":"https://api.github.com/users/ViDA-NYU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViDA-NYU/subscriptions","organizations_url":"https://api.github.com/users/ViDA-NYU/orgs","repos_url":"https://api.github.com/users/ViDA-NYU/repos","events_url":"https://api.github.com/users/ViDA-NYU/events{/privacy}","received_events_url":"https://api.github.com/users/ViDA-NYU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ViDA-NYU/genotet","description":"Genotet: An Interactive Web-based Visual Exploration Framework to Support Validation of Gene Regulatory Networks","fork":false,"url":"https://api.github.com/repos/ViDA-NYU/genotet","forks_url":"https://api.github.com/repos/ViDA-NYU/genotet/forks","keys_url":"https://api.github.com/repos/ViDA-NYU/genotet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ViDA-NYU/genotet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ViDA-NYU/genotet/teams","hooks_url":"https://api.github.com/repos/ViDA-NYU/genotet/hooks","issue_events_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/events{/number}","events_url":"https://api.github.com/repos/ViDA-NYU/genotet/events","assignees_url":"https://api.github.com/repos/ViDA-NYU/genotet/assignees{/user}","branches_url":"https://api.github.com/repos/ViDA-NYU/genotet/branches{/branch}","tags_url":"https://api.github.com/repos/ViDA-NYU/genotet/tags","blobs_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/{sha}","languages_url":"https://api.github.com/repos/ViDA-NYU/genotet/languages","stargazers_url":"https://api.github.com/repos/ViDA-NYU/genotet/stargazers","contributors_url":"https://api.github.com/repos/ViDA-NYU/genotet/contributors","subscribers_url":"https://api.github.com/repos/ViDA-NYU/genotet/subscribers","subscription_url":"https://api.github.com/repos/ViDA-NYU/genotet/subscription","commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ViDA-NYU/genotet/contents/{+path}","compare_url":"https://api.github.com/repos/ViDA-NYU/genotet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ViDA-NYU/genotet/merges","archive_url":"https://api.github.com/repos/ViDA-NYU/genotet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ViDA-NYU/genotet/downloads","issues_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues{/number}","pulls_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls{/number}","milestones_url":"https://api.github.com/repos/ViDA-NYU/genotet/milestones{/number}","notifications_url":"https://api.github.com/repos/ViDA-NYU/genotet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ViDA-NYU/genotet/labels{/name}","releases_url":"https://api.github.com/repos/ViDA-NYU/genotet/releases{/id}","deployments_url":"https://api.github.com/repos/ViDA-NYU/genotet/deployments","created_at":"2014-10-03T15:55:16Z","updated_at":"2016-01-11T19:18:29Z","pushed_at":"2016-02-05T09:25:50Z","git_url":"git://github.com/ViDA-NYU/genotet.git","ssh_url":"git@github.com:ViDA-NYU/genotet.git","clone_url":"https://github.com/ViDA-NYU/genotet.git","svn_url":"https://github.com/ViDA-NYU/genotet","homepage":null,"size":1719,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":4,"default_branch":"refactor"}},"_links":{"self":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/78"},"html":{"href":"https://github.com/ViDA-NYU/genotet/pull/78"},"issue":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/issues/78"},"comments":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/0a8daa14afa7b5bc23d50b62e8939cfd190d3380"}}}}