{"action":"created","comment":{"url":"https://api.github.com/repos/hammerlab/cohorts/pulls/comments/66821662","id":66821662,"diff_hunk":"@@ -518,7 +522,11 @@ def _load_single_patient_variants(self, patient, variant_type, merge_type):\n \n         self.save_to_cache(merged_variants, self.cache_names[\"variant\"], patient.id, cached_file_name)\n \n-        return merged_variants\n+        if filter_fn:","path":"cohorts/load.py","position":47,"original_position":47,"commit_id":"33082a8460eaf5bb2a1938a99f0d47026facb6d3","original_commit_id":"33082a8460eaf5bb2a1938a99f0d47026facb6d3","user":{"login":"arahuja","id":455755,"avatar_url":"https://avatars.githubusercontent.com/u/455755?v=3","gravatar_id":"","url":"https://api.github.com/users/arahuja","html_url":"https://github.com/arahuja","followers_url":"https://api.github.com/users/arahuja/followers","following_url":"https://api.github.com/users/arahuja/following{/other_user}","gists_url":"https://api.github.com/users/arahuja/gists{/gist_id}","starred_url":"https://api.github.com/users/arahuja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arahuja/subscriptions","organizations_url":"https://api.github.com/users/arahuja/orgs","repos_url":"https://api.github.com/users/arahuja/repos","events_url":"https://api.github.com/users/arahuja/events{/privacy}","received_events_url":"https://api.github.com/users/arahuja/received_events","type":"User","site_admin":false},"body":"Sure, I can move it into a function above","created_at":"2016-06-13T16:16:49Z","updated_at":"2016-06-13T16:16:49Z","html_url":"https://github.com/hammerlab/cohorts/pull/49#discussion_r66821662","pull_request_url":"https://api.github.com/repos/hammerlab/cohorts/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/hammerlab/cohorts/pulls/comments/66821662"},"html":{"href":"https://github.com/hammerlab/cohorts/pull/49#discussion_r66821662"},"pull_request":{"href":"https://api.github.com/repos/hammerlab/cohorts/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/hammerlab/cohorts/pulls/49","id":73505255,"html_url":"https://github.com/hammerlab/cohorts/pull/49","diff_url":"https://github.com/hammerlab/cohorts/pull/49.diff","patch_url":"https://github.com/hammerlab/cohorts/pull/49.patch","issue_url":"https://api.github.com/repos/hammerlab/cohorts/issues/49","number":49,"state":"open","locked":false,"title":"Add ability to filter variants","user":{"login":"arahuja","id":455755,"avatar_url":"https://avatars.githubusercontent.com/u/455755?v=3","gravatar_id":"","url":"https://api.github.com/users/arahuja","html_url":"https://github.com/arahuja","followers_url":"https://api.github.com/users/arahuja/followers","following_url":"https://api.github.com/users/arahuja/following{/other_user}","gists_url":"https://api.github.com/users/arahuja/gists{/gist_id}","starred_url":"https://api.github.com/users/arahuja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arahuja/subscriptions","organizations_url":"https://api.github.com/users/arahuja/orgs","repos_url":"https://api.github.com/users/arahuja/repos","events_url":"https://api.github.com/users/arahuja/events{/privacy}","received_events_url":"https://api.github.com/users/arahuja/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-12T19:48:39Z","updated_at":"2016-06-13T16:16:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de18f47eff0bb832de92926e886ed4d57ff299a1","assignee":{"login":"tavinathanson","id":322932,"avatar_url":"https://avatars.githubusercontent.com/u/322932?v=3","gravatar_id":"","url":"https://api.github.com/users/tavinathanson","html_url":"https://github.com/tavinathanson","followers_url":"https://api.github.com/users/tavinathanson/followers","following_url":"https://api.github.com/users/tavinathanson/following{/other_user}","gists_url":"https://api.github.com/users/tavinathanson/gists{/gist_id}","starred_url":"https://api.github.com/users/tavinathanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tavinathanson/subscriptions","organizations_url":"https://api.github.com/users/tavinathanson/orgs","repos_url":"https://api.github.com/users/tavinathanson/repos","events_url":"https://api.github.com/users/tavinathanson/events{/privacy}","received_events_url":"https://api.github.com/users/tavinathanson/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/hammerlab/cohorts/pulls/49/commits","review_comments_url":"https://api.github.com/repos/hammerlab/cohorts/pulls/49/comments","review_comment_url":"https://api.github.com/repos/hammerlab/cohorts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hammerlab/cohorts/issues/49/comments","statuses_url":"https://api.github.com/repos/hammerlab/cohorts/statuses/33082a8460eaf5bb2a1938a99f0d47026facb6d3","head":{"label":"hammerlab:filter-variants","ref":"filter-variants","sha":"33082a8460eaf5bb2a1938a99f0d47026facb6d3","user":{"login":"hammerlab","id":6563873,"avatar_url":"https://avatars.githubusercontent.com/u/6563873?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerlab","html_url":"https://github.com/hammerlab","followers_url":"https://api.github.com/users/hammerlab/followers","following_url":"https://api.github.com/users/hammerlab/following{/other_user}","gists_url":"https://api.github.com/users/hammerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerlab/subscriptions","organizations_url":"https://api.github.com/users/hammerlab/orgs","repos_url":"https://api.github.com/users/hammerlab/repos","events_url":"https://api.github.com/users/hammerlab/events{/privacy}","received_events_url":"https://api.github.com/users/hammerlab/received_events","type":"Organization","site_admin":false},"repo":{"id":53869966,"name":"cohorts","full_name":"hammerlab/cohorts","owner":{"login":"hammerlab","id":6563873,"avatar_url":"https://avatars.githubusercontent.com/u/6563873?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerlab","html_url":"https://github.com/hammerlab","followers_url":"https://api.github.com/users/hammerlab/followers","following_url":"https://api.github.com/users/hammerlab/following{/other_user}","gists_url":"https://api.github.com/users/hammerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerlab/subscriptions","organizations_url":"https://api.github.com/users/hammerlab/orgs","repos_url":"https://api.github.com/users/hammerlab/repos","events_url":"https://api.github.com/users/hammerlab/events{/privacy}","received_events_url":"https://api.github.com/users/hammerlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hammerlab/cohorts","description":"Utilities for analyzing mutations and neoepitopes in patient cohorts","fork":false,"url":"https://api.github.com/repos/hammerlab/cohorts","forks_url":"https://api.github.com/repos/hammerlab/cohorts/forks","keys_url":"https://api.github.com/repos/hammerlab/cohorts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hammerlab/cohorts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hammerlab/cohorts/teams","hooks_url":"https://api.github.com/repos/hammerlab/cohorts/hooks","issue_events_url":"https://api.github.com/repos/hammerlab/cohorts/issues/events{/number}","events_url":"https://api.github.com/repos/hammerlab/cohorts/events","assignees_url":"https://api.github.com/repos/hammerlab/cohorts/assignees{/user}","branches_url":"https://api.github.com/repos/hammerlab/cohorts/branches{/branch}","tags_url":"https://api.github.com/repos/hammerlab/cohorts/tags","blobs_url":"https://api.github.com/repos/hammerlab/cohorts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hammerlab/cohorts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hammerlab/cohorts/git/refs{/sha}","trees_url":"https://api.github.com/repos/hammerlab/cohorts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hammerlab/cohorts/statuses/{sha}","languages_url":"https://api.github.com/repos/hammerlab/cohorts/languages","stargazers_url":"https://api.github.com/repos/hammerlab/cohorts/stargazers","contributors_url":"https://api.github.com/repos/hammerlab/cohorts/contributors","subscribers_url":"https://api.github.com/repos/hammerlab/cohorts/subscribers","subscription_url":"https://api.github.com/repos/hammerlab/cohorts/subscription","commits_url":"https://api.github.com/repos/hammerlab/cohorts/commits{/sha}","git_commits_url":"https://api.github.com/repos/hammerlab/cohorts/git/commits{/sha}","comments_url":"https://api.github.com/repos/hammerlab/cohorts/comments{/number}","issue_comment_url":"https://api.github.com/repos/hammerlab/cohorts/issues/comments{/number}","contents_url":"https://api.github.com/repos/hammerlab/cohorts/contents/{+path}","compare_url":"https://api.github.com/repos/hammerlab/cohorts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hammerlab/cohorts/merges","archive_url":"https://api.github.com/repos/hammerlab/cohorts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hammerlab/cohorts/downloads","issues_url":"https://api.github.com/repos/hammerlab/cohorts/issues{/number}","pulls_url":"https://api.github.com/repos/hammerlab/cohorts/pulls{/number}","milestones_url":"https://api.github.com/repos/hammerlab/cohorts/milestones{/number}","notifications_url":"https://api.github.com/repos/hammerlab/cohorts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hammerlab/cohorts/labels{/name}","releases_url":"https://api.github.com/repos/hammerlab/cohorts/releases{/id}","deployments_url":"https://api.github.com/repos/hammerlab/cohorts/deployments","created_at":"2016-03-14T15:52:59Z","updated_at":"2016-05-06T18:34:33Z","pushed_at":"2016-06-12T19:48:39Z","git_url":"git://github.com/hammerlab/cohorts.git","ssh_url":"git@github.com:hammerlab/cohorts.git","clone_url":"https://github.com/hammerlab/cohorts.git","svn_url":"https://github.com/hammerlab/cohorts","homepage":null,"size":129,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":2,"default_branch":"master"}},"base":{"label":"hammerlab:master","ref":"master","sha":"33f86499363011d5254f220db613cc46088ade47","user":{"login":"hammerlab","id":6563873,"avatar_url":"https://avatars.githubusercontent.com/u/6563873?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerlab","html_url":"https://github.com/hammerlab","followers_url":"https://api.github.com/users/hammerlab/followers","following_url":"https://api.github.com/users/hammerlab/following{/other_user}","gists_url":"https://api.github.com/users/hammerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerlab/subscriptions","organizations_url":"https://api.github.com/users/hammerlab/orgs","repos_url":"https://api.github.com/users/hammerlab/repos","events_url":"https://api.github.com/users/hammerlab/events{/privacy}","received_events_url":"https://api.github.com/users/hammerlab/received_events","type":"Organization","site_admin":false},"repo":{"id":53869966,"name":"cohorts","full_name":"hammerlab/cohorts","owner":{"login":"hammerlab","id":6563873,"avatar_url":"https://avatars.githubusercontent.com/u/6563873?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerlab","html_url":"https://github.com/hammerlab","followers_url":"https://api.github.com/users/hammerlab/followers","following_url":"https://api.github.com/users/hammerlab/following{/other_user}","gists_url":"https://api.github.com/users/hammerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerlab/subscriptions","organizations_url":"https://api.github.com/users/hammerlab/orgs","repos_url":"https://api.github.com/users/hammerlab/repos","events_url":"https://api.github.com/users/hammerlab/events{/privacy}","received_events_url":"https://api.github.com/users/hammerlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hammerlab/cohorts","description":"Utilities for analyzing mutations and neoepitopes in patient cohorts","fork":false,"url":"https://api.github.com/repos/hammerlab/cohorts","forks_url":"https://api.github.com/repos/hammerlab/cohorts/forks","keys_url":"https://api.github.com/repos/hammerlab/cohorts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hammerlab/cohorts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hammerlab/cohorts/teams","hooks_url":"https://api.github.com/repos/hammerlab/cohorts/hooks","issue_events_url":"https://api.github.com/repos/hammerlab/cohorts/issues/events{/number}","events_url":"https://api.github.com/repos/hammerlab/cohorts/events","assignees_url":"https://api.github.com/repos/hammerlab/cohorts/assignees{/user}","branches_url":"https://api.github.com/repos/hammerlab/cohorts/branches{/branch}","tags_url":"https://api.github.com/repos/hammerlab/cohorts/tags","blobs_url":"https://api.github.com/repos/hammerlab/cohorts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hammerlab/cohorts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hammerlab/cohorts/git/refs{/sha}","trees_url":"https://api.github.com/repos/hammerlab/cohorts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hammerlab/cohorts/statuses/{sha}","languages_url":"https://api.github.com/repos/hammerlab/cohorts/languages","stargazers_url":"https://api.github.com/repos/hammerlab/cohorts/stargazers","contributors_url":"https://api.github.com/repos/hammerlab/cohorts/contributors","subscribers_url":"https://api.github.com/repos/hammerlab/cohorts/subscribers","subscription_url":"https://api.github.com/repos/hammerlab/cohorts/subscription","commits_url":"https://api.github.com/repos/hammerlab/cohorts/commits{/sha}","git_commits_url":"https://api.github.com/repos/hammerlab/cohorts/git/commits{/sha}","comments_url":"https://api.github.com/repos/hammerlab/cohorts/comments{/number}","issue_comment_url":"https://api.github.com/repos/hammerlab/cohorts/issues/comments{/number}","contents_url":"https://api.github.com/repos/hammerlab/cohorts/contents/{+path}","compare_url":"https://api.github.com/repos/hammerlab/cohorts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hammerlab/cohorts/merges","archive_url":"https://api.github.com/repos/hammerlab/cohorts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hammerlab/cohorts/downloads","issues_url":"https://api.github.com/repos/hammerlab/cohorts/issues{/number}","pulls_url":"https://api.github.com/repos/hammerlab/cohorts/pulls{/number}","milestones_url":"https://api.github.com/repos/hammerlab/cohorts/milestones{/number}","notifications_url":"https://api.github.com/repos/hammerlab/cohorts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hammerlab/cohorts/labels{/name}","releases_url":"https://api.github.com/repos/hammerlab/cohorts/releases{/id}","deployments_url":"https://api.github.com/repos/hammerlab/cohorts/deployments","created_at":"2016-03-14T15:52:59Z","updated_at":"2016-05-06T18:34:33Z","pushed_at":"2016-06-12T19:48:39Z","git_url":"git://github.com/hammerlab/cohorts.git","ssh_url":"git@github.com:hammerlab/cohorts.git","clone_url":"https://github.com/hammerlab/cohorts.git","svn_url":"https://github.com/hammerlab/cohorts","homepage":null,"size":129,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hammerlab/cohorts/pulls/49"},"html":{"href":"https://github.com/hammerlab/cohorts/pull/49"},"issue":{"href":"https://api.github.com/repos/hammerlab/cohorts/issues/49"},"comments":{"href":"https://api.github.com/repos/hammerlab/cohorts/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/hammerlab/cohorts/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/hammerlab/cohorts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hammerlab/cohorts/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/hammerlab/cohorts/statuses/33082a8460eaf5bb2a1938a99f0d47026facb6d3"}}}}
{"actor":{"display_login":"arahuja"}}