{"action":"created","comment":{"url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments/50631326","id":50631326,"diff_hunk":"@@ -272,8 +285,16 @@ genotet.ExpressionPanel.prototype.formatGeneInput = function(isGeneRegex,\n       });\n   } else {\n     var inputWords = geneInput.split(',');\n-    geneNames = inputWords.filter(function(word) {\n-      return word in this.data.matrixInfo.allGeneNames;\n+    var lowerGeneNames = {};\n+    Object.keys(this.data.matrixInfo.allGeneNames).forEach(function(name) {\n+      lowerGeneNames[name.toLowerCase()] = name;\n+    });\n+    geneNames = [];\n+    inputWords.forEach(function(word) {","path":"src/components/expression/expression-panel.js","position":74,"original_position":74,"commit_id":"6ebaf72035e858ec6ca295cbda52fa548f1ca2d0","original_commit_id":"6ebaf72035e858ec6ca295cbda52fa548f1ca2d0","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":"I think using forEach() is better. Because we want to return an array of geneNames, which are case-sensitive. filter() is used to pick up items from inputWords, which are case-insensitive.","created_at":"2016-01-24T07:09:32Z","updated_at":"2016-01-24T07:09:32Z","html_url":"https://github.com/ViDA-NYU/genotet/pull/77#discussion_r50631326","pull_request_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/77","_links":{"self":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments/50631326"},"html":{"href":"https://github.com/ViDA-NYU/genotet/pull/77#discussion_r50631326"},"pull_request":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/77","id":56791254,"html_url":"https://github.com/ViDA-NYU/genotet/pull/77","diff_url":"https://github.com/ViDA-NYU/genotet/pull/77.diff","patch_url":"https://github.com/ViDA-NYU/genotet/pull/77.patch","issue_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/77","number":77,"state":"open","locked":false,"title":"Fixed expression issues.","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":"#56 Fixed selection shifting on heatmap box zoom in.\r\n#57 Ignored cases when input string in expression.\r\n#63 Added legend to expression TFA profile.\r\n#68 Added one more input style checkbox in expression panel and fix their sizes.\r\n","created_at":"2016-01-21T18:43:31Z","updated_at":"2016-01-24T07:09:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"594a7200a8f1566dc1f7de80b0cf3be1d3ea6266","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/77/commits","review_comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/77/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/77/comments","statuses_url":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/6ebaf72035e858ec6ca295cbda52fa548f1ca2d0","head":{"label":"ViDA-NYU:liana/refactor","ref":"liana/refactor","sha":"6ebaf72035e858ec6ca295cbda52fa548f1ca2d0","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-01-24T06:10:43Z","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":1635,"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":17,"forks":2,"open_issues":17,"watchers":4,"default_branch":"refactor"}},"base":{"label":"ViDA-NYU:refactor","ref":"refactor","sha":"62c8a0556c7fb2d872176c956fc40bacadd2b932","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-01-24T06:10:43Z","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":1635,"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":17,"forks":2,"open_issues":17,"watchers":4,"default_branch":"refactor"}},"_links":{"self":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/77"},"html":{"href":"https://github.com/ViDA-NYU/genotet/pull/77"},"issue":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/issues/77"},"comments":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/77/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/77/commits"},"statuses":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/6ebaf72035e858ec6ca295cbda52fa548f1ca2d0"}}}}