GitHub PullRequestReviewCommentEvent at 2014-11-24 21:23:24
Repository: pyensembl
Actor: iskandr
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/hammerlab/pyensembl/pulls/comments/20823254","id":20823254,"diff_hunk":"@@ -0,0 +1,43 @@\n+\n+class Gene(object):\n+    def __init__(\n+            self,\n+            gene_id,\n+            db):\n+        assert isinstance(gene_id, str), \\\n+            \"Expected gene ID to be string, got %s : %s\" % (\n+            gene_id, type(gene_id)\n+        )\n+\n+        self.id = gene_id\n+        self.db = db\n+        query = \"\"\"\n+            SELECT gene_name, seqname, start, end, strand, gene_biotype\n+            FROM ensembl\n+            WHERE\n+                gene_id = ?\n+                AND feature = 'gene'\n+        \"\"\"\n+        cursor = db.execute(query, [gene_id])\n+        result = cursor.fetchone()\n+        assert result, \"Gene ID not found: %s\" % gene_id","path":"pyensembl/gene.py","position":23,"original_position":23,"commit_id":"0e23b82c382db023d5c7125b75f240975d77ea5f","original_commit_id":"0e23b82c382db023d5c7125b75f240975d77ea5f","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":"If you mistype a gene name or ID, would you rather see a weird error from inside sqlite3?","created_at":"2014-11-24T21:23:24Z","updated_at":"2014-11-24T21:23:24Z","html_url":"https://github.com/hammerlab/pyensembl/pull/3#discussion_r20823254","pull_request_url":"https://api.github.com/repos/hammerlab/pyensembl/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/hammerlab/pyensembl/pulls/comments/20823254"},"html":{"href":"https://github.com/hammerlab/pyensembl/pull/3#discussion_r20823254"},"pull_request":{"href":"https://api.github.com/repos/hammerlab/pyensembl/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/hammerlab/pyensembl/pulls/3","id":24877077,"html_url":"https://github.com/hammerlab/pyensembl/pull/3","diff_url":"https://github.com/hammerlab/pyensembl/pull/3.diff","patch_url":"https://github.com/hammerlab/pyensembl/pull/3.patch","issue_url":"https://api.github.com/repos/hammerlab/pyensembl/issues/3","number":3,"state":"open","locked":false,"title":"Combined locus/loci, info objects for genes & transcripts, reconstruct missing entries & columns for old releases","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":"2014-11-21T23:24:15Z","updated_at":"2014-11-24T21:23:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a02f6e88537cd3d17bc10890230ffae8d960b4cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hammerlab/pyensembl/pulls/3/commits","review_comments_url":"https://api.github.com/repos/hammerlab/pyensembl/pulls/3/comments","review_comment_url":"https://api.github.com/repos/hammerlab/pyensembl/pulls/comments/{number}","comments_url":"https://api.github.com/repos/hammerlab/pyensembl/issues/3/comments","statuses_url":"https://api.github.com/repos/hammerlab/pyensembl/statuses/0e23b82c382db023d5c7125b75f240975d77ea5f","head":{"label":"hammerlab:gene_exon_transcript_objects","ref":"gene_exon_transcript_objects","sha":"0e23b82c382db023d5c7125b75f240975d77ea5f","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":18765629,"name":"pyensembl","full_name":"hammerlab/pyensembl","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/pyensembl","description":"Python interface to ensembl reference genome metadata (exons, transcripts, etc...)","fork":false,"url":"https://api.github.com/repos/hammerlab/pyensembl","forks_url":"https://api.github.com/repos/hammerlab/pyensembl/forks","keys_url":"https://api.github.com/repos/hammerlab/pyensembl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hammerlab/pyensembl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hammerlab/pyensembl/teams","hooks_url":"https://api.github.com/repos/hammerlab/pyensembl/hooks","issue_events_url":"https://api.github.com/repos/hammerlab/pyensembl/issues/events{/number}","events_url":"https://api.github.com/repos/hammerlab/pyensembl/events","assignees_url":"https://api.github.com/repos/hammerlab/pyensembl/assignees{/user}","branches_url":"https://api.github.com/repos/hammerlab/pyensembl/branches{/branch}","tags_url":"https://api.github.com/repos/hammerlab/pyensembl/tags","blobs_url":"https://api.github.com/repos/hammerlab/pyensembl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hammerlab/pyensembl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hammerlab/pyensembl/git/refs{/sha}","trees_url":"https://api.github.com/repos/hammerlab/pyensembl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hammerlab/pyensembl/statuses/{sha}","languages_url":"https://api.github.com/repos/hammerlab/pyensembl/languages","stargazers_url":"https://api.github.com/repos/hammerlab/pyensembl/stargazers","contributors_url":"https://api.github.com/repos/hammerlab/pyensembl/contributors","subscribers_url":"https://api.github.com/repos/hammerlab/pyensembl/subscribers","subscription_url":"https://api.github.com/repos/hammerlab/pyensembl/subscription","commits_url":"https://api.github.com/repos/hammerlab/pyensembl/commits{/sha}","git_commits_url":"https://api.github.com/repos/hammerlab/pyensembl/git/commits{/sha}","comments_url":"https://api.github.com/repos/hammerlab/pyensembl/comments{/number}","issue_comment_url":"https://api.github.com/repos/hammerlab/pyensembl/issues/comments/{number}","contents_url":"https://api.github.com/repos/hammerlab/pyensembl/contents/{+path}","compare_url":"https://api.github.com/repos/hammerlab/pyensembl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hammerlab/pyensembl/merges","archive_url":"https://api.github.com/repos/hammerlab/pyensembl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hammerlab/pyensembl/downloads","issues_url":"https://api.github.com/repos/hammerlab/pyensembl/issues{/number}","pulls_url":"https://api.github.com/repos/hammerlab/pyensembl/pulls{/number}","milestones_url":"https://api.github.com/repos/hammerlab/pyensembl/milestones{/number}","notifications_url":"https://api.github.com/repos/hammerlab/pyensembl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hammerlab/pyensembl/labels{/name}","releases_url":"https://api.github.com/repos/hammerlab/pyensembl/releases{/id}","created_at":"2014-04-14T15:23:02Z","updated_at":"2014-11-22T21:07:29Z","pushed_at":"2014-11-22T21:07:30Z","git_url":"git://github.com/hammerlab/pyensembl.git","ssh_url":"git@github.com:hammerlab/pyensembl.git","clone_url":"https://github.com/hammerlab/pyensembl.git","svn_url":"https://github.com/hammerlab/pyensembl","homepage":null,"size":320,"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":2,"forks":0,"open_issues":2,"watchers":5,"default_branch":"master"}},"base":{"label":"hammerlab:master","ref":"master","sha":"d0a6c3ddc6f3498c8eea6168f68549da6477011e","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":18765629,"name":"pyensembl","full_name":"hammerlab/pyensembl","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/pyensembl","description":"Python interface to ensembl reference genome metadata (exons, transcripts, etc...)","fork":false,"url":"https://api.github.com/repos/hammerlab/pyensembl","forks_url":"https://api.github.com/repos/hammerlab/pyensembl/forks","keys_url":"https://api.github.com/repos/hammerlab/pyensembl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hammerlab/pyensembl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hammerlab/pyensembl/teams","hooks_url":"https://api.github.com/repos/hammerlab/pyensembl/hooks","issue_events_url":"https://api.github.com/repos/hammerlab/pyensembl/issues/events{/number}","events_url":"https://api.github.com/repos/hammerlab/pyensembl/events","assignees_url":"https://api.github.com/repos/hammerlab/pyensembl/assignees{/user}","branches_url":"https://api.github.com/repos/hammerlab/pyensembl/branches{/branch}","tags_url":"https://api.github.com/repos/hammerlab/pyensembl/tags","blobs_url":"https://api.github.com/repos/hammerlab/pyensembl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hammerlab/pyensembl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hammerlab/pyensembl/git/refs{/sha}","trees_url":"https://api.github.com/repos/hammerlab/pyensembl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hammerlab/pyensembl/statuses/{sha}","languages_url":"https://api.github.com/repos/hammerlab/pyensembl/languages","stargazers_url":"https://api.github.com/repos/hammerlab/pyensembl/stargazers","contributors_url":"https://api.github.com/repos/hammerlab/pyensembl/contributors","subscribers_url":"https://api.github.com/repos/hammerlab/pyensembl/subscribers","subscription_url":"https://api.github.com/repos/hammerlab/pyensembl/subscription","commits_url":"https://api.github.com/repos/hammerlab/pyensembl/commits{/sha}","git_commits_url":"https://api.github.com/repos/hammerlab/pyensembl/git/commits{/sha}","comments_url":"https://api.github.com/repos/hammerlab/pyensembl/comments{/number}","issue_comment_url":"https://api.github.com/repos/hammerlab/pyensembl/issues/comments/{number}","contents_url":"https://api.github.com/repos/hammerlab/pyensembl/contents/{+path}","compare_url":"https://api.github.com/repos/hammerlab/pyensembl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hammerlab/pyensembl/merges","archive_url":"https://api.github.com/repos/hammerlab/pyensembl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hammerlab/pyensembl/downloads","issues_url":"https://api.github.com/repos/hammerlab/pyensembl/issues{/number}","pulls_url":"https://api.github.com/repos/hammerlab/pyensembl/pulls{/number}","milestones_url":"https://api.github.com/repos/hammerlab/pyensembl/milestones{/number}","notifications_url":"https://api.github.com/repos/hammerlab/pyensembl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hammerlab/pyensembl/labels{/name}","releases_url":"https://api.github.com/repos/hammerlab/pyensembl/releases{/id}","created_at":"2014-04-14T15:23:02Z","updated_at":"2014-11-22T21:07:29Z","pushed_at":"2014-11-22T21:07:30Z","git_url":"git://github.com/hammerlab/pyensembl.git","ssh_url":"git@github.com:hammerlab/pyensembl.git","clone_url":"https://github.com/hammerlab/pyensembl.git","svn_url":"https://github.com/hammerlab/pyensembl","homepage":null,"size":320,"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":2,"forks":0,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hammerlab/pyensembl/pulls/3"},"html":{"href":"https://github.com/hammerlab/pyensembl/pull/3"},"issue":{"href":"https://api.github.com/repos/hammerlab/pyensembl/issues/3"},"comments":{"href":"https://api.github.com/repos/hammerlab/pyensembl/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/hammerlab/pyensembl/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/hammerlab/pyensembl/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/hammerlab/pyensembl/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/hammerlab/pyensembl/statuses/0e23b82c382db023d5c7125b75f240975d77ea5f"}}}}