{"action":"created","comment":{"url":"https://api.github.com/repos/hammerlab/varcode/pulls/comments/25026418","id":25026418,"diff_hunk":"@@ -0,0 +1,25 @@\n+# Copyright (c) 2014. Mount Sinai School of Medicine\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+from varcode import Variant, VariantCollection\n+\n+def test_drop_duplicates():\n+    v1 = Variant(\"1\", 3000, \"A\", \"G\")","path":"test/test_drop_duplicates.py","position":18,"original_position":18,"commit_id":"0361b6e7e5677d2e92030337b93ab486b487b048","original_commit_id":"0651cab54daef37095ea4dfb0edc8e36fa1b725d","user":{"login":"iskandr","id":48441,"avatar_url":"https://avatars.githubusercontent.com/u/48441?v=3","gravatar_id":"","url":"https://api.github.com/users/iskandr","html_url":"https://github.com/iskandr","followers_url":"https://api.github.com/users/iskandr/followers","following_url":"https://api.github.com/users/iskandr/following{/other_user}","gists_url":"https://api.github.com/users/iskandr/gists{/gist_id}","starred_url":"https://api.github.com/users/iskandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iskandr/subscriptions","organizations_url":"https://api.github.com/users/iskandr/orgs","repos_url":"https://api.github.com/users/iskandr/repos","events_url":"https://api.github.com/users/iskandr/events{/privacy}","received_events_url":"https://api.github.com/users/iskandr/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-02-19T21:17:35Z","updated_at":"2015-02-19T21:17:35Z","html_url":"https://github.com/hammerlab/varcode/pull/19#discussion_r25026418","pull_request_url":"https://api.github.com/repos/hammerlab/varcode/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/comments/25026418"},"html":{"href":"https://github.com/hammerlab/varcode/pull/19#discussion_r25026418"},"pull_request":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/hammerlab/varcode/pulls/19","id":29636158,"html_url":"https://github.com/hammerlab/varcode/pull/19","diff_url":"https://github.com/hammerlab/varcode/pull/19.diff","patch_url":"https://github.com/hammerlab/varcode/pull/19.patch","issue_url":"https://api.github.com/repos/hammerlab/varcode/issues/19","number":19,"state":"open","locked":false,"title":"Variant collection filtering","user":{"login":"iskandr","id":48441,"avatar_url":"https://avatars.githubusercontent.com/u/48441?v=3","gravatar_id":"","url":"https://api.github.com/users/iskandr","html_url":"https://github.com/iskandr","followers_url":"https://api.github.com/users/iskandr/followers","following_url":"https://api.github.com/users/iskandr/following{/other_user}","gists_url":"https://api.github.com/users/iskandr/gists{/gist_id}","starred_url":"https://api.github.com/users/iskandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iskandr/subscriptions","organizations_url":"https://api.github.com/users/iskandr/orgs","repos_url":"https://api.github.com/users/iskandr/repos","events_url":"https://api.github.com/users/iskandr/events{/privacy}","received_events_url":"https://api.github.com/users/iskandr/received_events","type":"User","site_admin":false},"body":"- split file loading from constructing `VariantCollection` objects (use `load_variants` function instead)\r\n- added `clone` method to `VariantCollection` to simplify adding other filter methods \r\n- moved `drop_duplicates` from a file loading argument to be a method on `VariantCollection`\r\n- added test for `drop_duplicates`\r\n- version bump to 0.0.1","created_at":"2015-02-19T18:30:13Z","updated_at":"2015-02-19T21:17:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2e049db1d4665497dd0388dfd5c0bb72dda671c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hammerlab/varcode/pulls/19/commits","review_comments_url":"https://api.github.com/repos/hammerlab/varcode/pulls/19/comments","review_comment_url":"https://api.github.com/repos/hammerlab/varcode/pulls/comments/{number}","comments_url":"https://api.github.com/repos/hammerlab/varcode/issues/19/comments","statuses_url":"https://api.github.com/repos/hammerlab/varcode/statuses/0361b6e7e5677d2e92030337b93ab486b487b048","head":{"label":"variant_collection_filtering","ref":"variant_collection_filtering","sha":"0361b6e7e5677d2e92030337b93ab486b487b048","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":26663543,"name":"varcode","full_name":"hammerlab/varcode","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/varcode","description":"Variant annotation in Python","fork":false,"url":"https://api.github.com/repos/hammerlab/varcode","forks_url":"https://api.github.com/repos/hammerlab/varcode/forks","keys_url":"https://api.github.com/repos/hammerlab/varcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hammerlab/varcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hammerlab/varcode/teams","hooks_url":"https://api.github.com/repos/hammerlab/varcode/hooks","issue_events_url":"https://api.github.com/repos/hammerlab/varcode/issues/events{/number}","events_url":"https://api.github.com/repos/hammerlab/varcode/events","assignees_url":"https://api.github.com/repos/hammerlab/varcode/assignees{/user}","branches_url":"https://api.github.com/repos/hammerlab/varcode/branches{/branch}","tags_url":"https://api.github.com/repos/hammerlab/varcode/tags","blobs_url":"https://api.github.com/repos/hammerlab/varcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hammerlab/varcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hammerlab/varcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/hammerlab/varcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hammerlab/varcode/statuses/{sha}","languages_url":"https://api.github.com/repos/hammerlab/varcode/languages","stargazers_url":"https://api.github.com/repos/hammerlab/varcode/stargazers","contributors_url":"https://api.github.com/repos/hammerlab/varcode/contributors","subscribers_url":"https://api.github.com/repos/hammerlab/varcode/subscribers","subscription_url":"https://api.github.com/repos/hammerlab/varcode/subscription","commits_url":"https://api.github.com/repos/hammerlab/varcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/hammerlab/varcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/hammerlab/varcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/hammerlab/varcode/issues/comments/{number}","contents_url":"https://api.github.com/repos/hammerlab/varcode/contents/{+path}","compare_url":"https://api.github.com/repos/hammerlab/varcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hammerlab/varcode/merges","archive_url":"https://api.github.com/repos/hammerlab/varcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hammerlab/varcode/downloads","issues_url":"https://api.github.com/repos/hammerlab/varcode/issues{/number}","pulls_url":"https://api.github.com/repos/hammerlab/varcode/pulls{/number}","milestones_url":"https://api.github.com/repos/hammerlab/varcode/milestones{/number}","notifications_url":"https://api.github.com/repos/hammerlab/varcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hammerlab/varcode/labels{/name}","releases_url":"https://api.github.com/repos/hammerlab/varcode/releases{/id}","created_at":"2014-11-15T00:20:42Z","updated_at":"2015-02-19T18:33:35Z","pushed_at":"2015-02-19T19:43:59Z","git_url":"git://github.com/hammerlab/varcode.git","ssh_url":"git@github.com:hammerlab/varcode.git","clone_url":"https://github.com/hammerlab/varcode.git","svn_url":"https://github.com/hammerlab/varcode","homepage":null,"size":344,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":5,"default_branch":"master"}},"base":{"label":"master","ref":"master","sha":"54fc3684c0b7a59dfaba0c5b13614da42e610607","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":26663543,"name":"varcode","full_name":"hammerlab/varcode","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/varcode","description":"Variant annotation in Python","fork":false,"url":"https://api.github.com/repos/hammerlab/varcode","forks_url":"https://api.github.com/repos/hammerlab/varcode/forks","keys_url":"https://api.github.com/repos/hammerlab/varcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hammerlab/varcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hammerlab/varcode/teams","hooks_url":"https://api.github.com/repos/hammerlab/varcode/hooks","issue_events_url":"https://api.github.com/repos/hammerlab/varcode/issues/events{/number}","events_url":"https://api.github.com/repos/hammerlab/varcode/events","assignees_url":"https://api.github.com/repos/hammerlab/varcode/assignees{/user}","branches_url":"https://api.github.com/repos/hammerlab/varcode/branches{/branch}","tags_url":"https://api.github.com/repos/hammerlab/varcode/tags","blobs_url":"https://api.github.com/repos/hammerlab/varcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hammerlab/varcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hammerlab/varcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/hammerlab/varcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hammerlab/varcode/statuses/{sha}","languages_url":"https://api.github.com/repos/hammerlab/varcode/languages","stargazers_url":"https://api.github.com/repos/hammerlab/varcode/stargazers","contributors_url":"https://api.github.com/repos/hammerlab/varcode/contributors","subscribers_url":"https://api.github.com/repos/hammerlab/varcode/subscribers","subscription_url":"https://api.github.com/repos/hammerlab/varcode/subscription","commits_url":"https://api.github.com/repos/hammerlab/varcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/hammerlab/varcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/hammerlab/varcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/hammerlab/varcode/issues/comments/{number}","contents_url":"https://api.github.com/repos/hammerlab/varcode/contents/{+path}","compare_url":"https://api.github.com/repos/hammerlab/varcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hammerlab/varcode/merges","archive_url":"https://api.github.com/repos/hammerlab/varcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hammerlab/varcode/downloads","issues_url":"https://api.github.com/repos/hammerlab/varcode/issues{/number}","pulls_url":"https://api.github.com/repos/hammerlab/varcode/pulls{/number}","milestones_url":"https://api.github.com/repos/hammerlab/varcode/milestones{/number}","notifications_url":"https://api.github.com/repos/hammerlab/varcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hammerlab/varcode/labels{/name}","releases_url":"https://api.github.com/repos/hammerlab/varcode/releases{/id}","created_at":"2014-11-15T00:20:42Z","updated_at":"2015-02-19T18:33:35Z","pushed_at":"2015-02-19T19:43:59Z","git_url":"git://github.com/hammerlab/varcode.git","ssh_url":"git@github.com:hammerlab/varcode.git","clone_url":"https://github.com/hammerlab/varcode.git","svn_url":"https://github.com/hammerlab/varcode","homepage":null,"size":344,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/19"},"html":{"href":"https://github.com/hammerlab/varcode/pull/19"},"issue":{"href":"https://api.github.com/repos/hammerlab/varcode/issues/19"},"comments":{"href":"https://api.github.com/repos/hammerlab/varcode/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/hammerlab/varcode/statuses/0361b6e7e5677d2e92030337b93ab486b487b048"}}}}