{"action":"created","comment":{"url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments/49947589","id":49947589,"diff_hunk":"@@ -581,12 +675,64 @@ genotet.BindingRenderer.prototype.drawExons_ = function() {\n  * @private\n  */\n genotet.BindingRenderer.prototype.drawBed_ = function() {\n-  // TODO(liana): Check bed visual encoding and implement this.\n-  /*\n   if (!this.data.options.showBed) {\n-    this.bedContent_.style('display', '');\n+    this.bedContent_.style('display', 'none');\n+  } else {\n+    this.bedContent_.style('display', 'inline');\n+  }\n+  var bedData = this.bedPosition_;\n+  this.bedRectHeight_ = (this.bedHeight_ - this.BED_MARGINS_.TOP -\n+    this.BED_MARGINS_.BOTTOM) / bedData.length;\n+  var unitHeight = this.bedRectHeight_;\n+  if (!this.data.bed.aggregated && this.data.options.showBedLabel) {\n+    this.bedRectHeight_ -= this.BED_LABEL_SIZE;\n+  }\n+  var opt_range = [];\n+  var bedRows = this.bedContent_.selectAll('g').data(bedData);\n+  bedRows.enter().append('g');\n+  bedRows.exit().remove();\n+  var bedRects = bedRows.selectAll('rect').data(_.identity);\n+  bedRects.enter().append('rect');\n+  bedRects\n+    .attr('width', function(data) {\n+      var range = [data.chrStart, data.chrEnd];\n+      opt_range = this.bindingCoordinatesToScreenRange_(range);\n+      var rectWidth = opt_range[1] - opt_range[0];\n+      return rectWidth < 3 ? 3 : rectWidth;","path":"src/components/binding/binding-renderer.js","position":207,"original_position":207,"commit_id":"35ad0c7a06e0c6845fe70f92383e49c5639526a7","original_commit_id":"8f7cc4824642e43cf6cf2cd9bd2cfd9d67b4e2b4","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":"Make 3 a constant.","created_at":"2016-01-17T15:21:49Z","updated_at":"2016-01-17T15:21:49Z","html_url":"https://github.com/ViDA-NYU/genotet/pull/62#discussion_r49947589","pull_request_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments/49947589"},"html":{"href":"https://github.com/ViDA-NYU/genotet/pull/62#discussion_r49947589"},"pull_request":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/62","id":56247414,"html_url":"https://github.com/ViDA-NYU/genotet/pull/62","diff_url":"https://github.com/ViDA-NYU/genotet/pull/62.diff","patch_url":"https://github.com/ViDA-NYU/genotet/pull/62.patch","issue_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/62","number":62,"state":"open","locked":false,"title":"Implemented bed binding track.","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 bed binding track. \r\nAdded bed label checkbox in panel.","created_at":"2016-01-16T06:34:28Z","updated_at":"2016-01-17T15:21:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0be283de2e377a9adf69bca1a6aef1fd0dc846ac","assignee":{"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},"milestone":null,"commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/62/commits","review_comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/62/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/62/comments","statuses_url":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/35ad0c7a06e0c6845fe70f92383e49c5639526a7","head":{"label":"ViDA-NYU:liana/bed","ref":"liana/bed","sha":"35ad0c7a06e0c6845fe70f92383e49c5639526a7","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}","created_at":"2014-10-03T15:55:16Z","updated_at":"2016-01-11T19:18:29Z","pushed_at":"2016-01-17T15:11:40Z","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":1664,"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":12,"forks":2,"open_issues":12,"watchers":4,"default_branch":"refactor"}},"base":{"label":"ViDA-NYU:refactor","ref":"refactor","sha":"70530a268578df3ba53bc8e3872ebe33084a6cf6","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}","created_at":"2014-10-03T15:55:16Z","updated_at":"2016-01-11T19:18:29Z","pushed_at":"2016-01-17T15:11:40Z","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":1664,"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":12,"forks":2,"open_issues":12,"watchers":4,"default_branch":"refactor"}},"_links":{"self":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/62"},"html":{"href":"https://github.com/ViDA-NYU/genotet/pull/62"},"issue":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/issues/62"},"comments":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/62/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/62/commits"},"statuses":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/35ad0c7a06e0c6845fe70f92383e49c5639526a7"}}}}