{"action":"created","comment":{"url":"https://api.github.com/repos/hammerlab/varcode/pulls/comments/24908245","id":24908245,"diff_hunk":"@@ -381,6 +383,78 @@ def infer_exonic_effect(variant, transcript):\n         variant,\n         transcript)\n \n+def find_nearest_exon(start, end, exons):\n+    \"\"\"\n+    Finds nearest exon to an intronic variant, returns the\n+    distance to that exon, along with the Exon object itself.\n+    \"\"\"\n+    best_distance = float(\"inf\")\n+    best_exon = None\n+    for exon in exons:","path":"varcode/core_logic.py","position":20,"original_position":20,"commit_id":"a50e194c94d293a1f4c840aa25ff10912f1f6e55","original_commit_id":"a50e194c94d293a1f4c840aa25ff10912f1f6e55","user":{"login":"timodonnell","id":467896,"avatar_url":"https://avatars.githubusercontent.com/u/467896?v=3","gravatar_id":"","url":"https://api.github.com/users/timodonnell","html_url":"https://github.com/timodonnell","followers_url":"https://api.github.com/users/timodonnell/followers","following_url":"https://api.github.com/users/timodonnell/following{/other_user}","gists_url":"https://api.github.com/users/timodonnell/gists{/gist_id}","starred_url":"https://api.github.com/users/timodonnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timodonnell/subscriptions","organizations_url":"https://api.github.com/users/timodonnell/orgs","repos_url":"https://api.github.com/users/timodonnell/repos","events_url":"https://api.github.com/users/timodonnell/events{/privacy}","received_events_url":"https://api.github.com/users/timodonnell/received_events","type":"User","site_admin":false},"body":"i'd consider putting this logic in a distance_between_intervals(start1, end1, start2, end2) function","created_at":"2015-02-18T15:18:57Z","updated_at":"2015-02-18T15:18:57Z","html_url":"https://github.com/hammerlab/varcode/pull/17#discussion_r24908245","pull_request_url":"https://api.github.com/repos/hammerlab/varcode/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/comments/24908245"},"html":{"href":"https://github.com/hammerlab/varcode/pull/17#discussion_r24908245"},"pull_request":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/hammerlab/varcode/pulls/17","id":29490704,"html_url":"https://github.com/hammerlab/varcode/pull/17","diff_url":"https://github.com/hammerlab/varcode/pull/17.diff","patch_url":"https://github.com/hammerlab/varcode/pull/17.patch","issue_url":"https://api.github.com/repos/hammerlab/varcode/issues/17","number":17,"state":"open","locked":false,"title":"added IntronicSpliceSite, SpliceDonor, SpliceAcceptor effects","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":"","created_at":"2015-02-18T00:13:58Z","updated_at":"2015-02-18T15:18:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"540b18ec76fe9d23dbdfb06569b101faaa9c3070","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hammerlab/varcode/pulls/17/commits","review_comments_url":"https://api.github.com/repos/hammerlab/varcode/pulls/17/comments","review_comment_url":"https://api.github.com/repos/hammerlab/varcode/pulls/comments/{number}","comments_url":"https://api.github.com/repos/hammerlab/varcode/issues/17/comments","statuses_url":"https://api.github.com/repos/hammerlab/varcode/statuses/a50e194c94d293a1f4c840aa25ff10912f1f6e55","head":{"label":"hammerlab:intronic_splicing_effects","ref":"intronic_splicing_effects","sha":"a50e194c94d293a1f4c840aa25ff10912f1f6e55","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-17T02:41:35Z","pushed_at":"2015-02-18T00:13:50Z","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":10,"forks":0,"open_issues":10,"watchers":5,"default_branch":"master"}},"base":{"label":"hammerlab:master","ref":"master","sha":"66ca0619b3e6d7d263c47fb366b577b2510d5f1d","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-17T02:41:35Z","pushed_at":"2015-02-18T00:13:50Z","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":10,"forks":0,"open_issues":10,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/17"},"html":{"href":"https://github.com/hammerlab/varcode/pull/17"},"issue":{"href":"https://api.github.com/repos/hammerlab/varcode/issues/17"},"comments":{"href":"https://api.github.com/repos/hammerlab/varcode/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/hammerlab/varcode/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/hammerlab/varcode/statuses/a50e194c94d293a1f4c840aa25ff10912f1f6e55"}}}}