{"action":"created","comment":{"url":"https://api.github.com/repos/raphael-group/magi/pulls/comments/48450219","id":48450219,"diff_hunk":"@@ -474,6 +427,9 @@ function view(){\n \t\tvar aminoAcidCodes = { A: \"Ala\", B: \"Asx\", C: \"Cys\", D: \"Asp\", E: \"Glu\", F: \"Phe\", G: \"Gly\", H: \"His\", I: \"Ile\", K: \"Lys\", L: \"Leu\", M: \"Met\", N: \"Asn\", P: \"Pro\", Q: \"Gln\", R: \"Arg\", S: \"Ser\", T: \"Thr\", V: \"Val\", W: \"Trp\", X: \"X\", Y: \"Tyr\",Z: \"Glx\", \"*\": \"*\"};\n \t\tfunction aminoAcidCode(aa){ return aa in aminoAcidCodes ? aminoAcidCodes[aa] : aa; }\n \n+\n+  \t    // add some codes to interface with Django HTML api\n+\t    var mutationTypeRevMap = {'Missense_Mutation':'MS', 'In_Frame_Del': 'IFD'};","path":"public/js/view.js","position":175,"original_position":175,"commit_id":"464191da99b37a18254e457db33e8c968eb5f463","original_commit_id":"464191da99b37a18254e457db33e8c968eb5f463","user":{"login":"johndashen","id":7217604,"avatar_url":"https://avatars.githubusercontent.com/u/7217604?v=3","gravatar_id":"","url":"https://api.github.com/users/johndashen","html_url":"https://github.com/johndashen","followers_url":"https://api.github.com/users/johndashen/followers","following_url":"https://api.github.com/users/johndashen/following{/other_user}","gists_url":"https://api.github.com/users/johndashen/gists{/gist_id}","starred_url":"https://api.github.com/users/johndashen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johndashen/subscriptions","organizations_url":"https://api.github.com/users/johndashen/orgs","repos_url":"https://api.github.com/users/johndashen/repos","events_url":"https://api.github.com/users/johndashen/events{/privacy}","received_events_url":"https://api.github.com/users/johndashen/received_events","type":"User","site_admin":false},"body":"Currently, no, as we only allow the SNV mutation class to be sent, and we don't preload any reference annotation data.","created_at":"2015-12-26T22:21:00Z","updated_at":"2015-12-26T22:21:00Z","html_url":"https://github.com/raphael-group/magi/pull/26#discussion_r48450219","pull_request_url":"https://api.github.com/repos/raphael-group/magi/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/raphael-group/magi/pulls/comments/48450219"},"html":{"href":"https://github.com/raphael-group/magi/pull/26#discussion_r48450219"},"pull_request":{"href":"https://api.github.com/repos/raphael-group/magi/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/raphael-group/magi/pulls/26","id":50046906,"html_url":"https://github.com/raphael-group/magi/pull/26","diff_url":"https://github.com/raphael-group/magi/pull/26.diff","patch_url":"https://github.com/raphael-group/magi/pull/26.patch","issue_url":"https://api.github.com/repos/raphael-group/magi/issues/26","number":26,"state":"open","locked":false,"title":"Delegate mutation reference annotations to django","user":{"login":"johndashen","id":7217604,"avatar_url":"https://avatars.githubusercontent.com/u/7217604?v=3","gravatar_id":"","url":"https://api.github.com/users/johndashen","html_url":"https://github.com/johndashen","followers_url":"https://api.github.com/users/johndashen/followers","following_url":"https://api.github.com/users/johndashen/following{/other_user}","gists_url":"https://api.github.com/users/johndashen/gists{/gist_id}","starred_url":"https://api.github.com/users/johndashen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johndashen/subscriptions","organizations_url":"https://api.github.com/users/johndashen/orgs","repos_url":"https://api.github.com/users/johndashen/repos","events_url":"https://api.github.com/users/johndashen/events{/privacy}","received_events_url":"https://api.github.com/users/johndashen/received_events","type":"User","site_admin":false},"body":"In this patch MAGI delegates annotations to a django referring website:\r\n\r\nThe annotations and account gene page is redirected to the MAGI page.\r\nThe sample view page and main view page gets counts from Django's database and refers to the details section of the django page.  Adding a mutation with source from the main view page creates records in Django's website.  \r\n\r\nInteractions are still handled on the main MAGI page and its own separate postgres database.","created_at":"2015-11-07T22:26:14Z","updated_at":"2015-12-26T22:21:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05f69933aa92f330e8f61932a6c274854bd2990e","assignee":{"login":"mdml","id":2043206,"avatar_url":"https://avatars.githubusercontent.com/u/2043206?v=3","gravatar_id":"","url":"https://api.github.com/users/mdml","html_url":"https://github.com/mdml","followers_url":"https://api.github.com/users/mdml/followers","following_url":"https://api.github.com/users/mdml/following{/other_user}","gists_url":"https://api.github.com/users/mdml/gists{/gist_id}","starred_url":"https://api.github.com/users/mdml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdml/subscriptions","organizations_url":"https://api.github.com/users/mdml/orgs","repos_url":"https://api.github.com/users/mdml/repos","events_url":"https://api.github.com/users/mdml/events{/privacy}","received_events_url":"https://api.github.com/users/mdml/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/raphael-group/magi/pulls/26/commits","review_comments_url":"https://api.github.com/repos/raphael-group/magi/pulls/26/comments","review_comment_url":"https://api.github.com/repos/raphael-group/magi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/raphael-group/magi/issues/26/comments","statuses_url":"https://api.github.com/repos/raphael-group/magi/statuses/464191da99b37a18254e457db33e8c968eb5f463","head":{"label":"raphael-group:link-django-annos","ref":"link-django-annos","sha":"464191da99b37a18254e457db33e8c968eb5f463","user":{"login":"raphael-group","id":5168500,"avatar_url":"https://avatars.githubusercontent.com/u/5168500?v=3","gravatar_id":"","url":"https://api.github.com/users/raphael-group","html_url":"https://github.com/raphael-group","followers_url":"https://api.github.com/users/raphael-group/followers","following_url":"https://api.github.com/users/raphael-group/following{/other_user}","gists_url":"https://api.github.com/users/raphael-group/gists{/gist_id}","starred_url":"https://api.github.com/users/raphael-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphael-group/subscriptions","organizations_url":"https://api.github.com/users/raphael-group/orgs","repos_url":"https://api.github.com/users/raphael-group/repos","events_url":"https://api.github.com/users/raphael-group/events{/privacy}","received_events_url":"https://api.github.com/users/raphael-group/received_events","type":"Organization","site_admin":false},"repo":{"id":23801476,"name":"magi","full_name":"raphael-group/magi","owner":{"login":"raphael-group","id":5168500,"avatar_url":"https://avatars.githubusercontent.com/u/5168500?v=3","gravatar_id":"","url":"https://api.github.com/users/raphael-group","html_url":"https://github.com/raphael-group","followers_url":"https://api.github.com/users/raphael-group/followers","following_url":"https://api.github.com/users/raphael-group/following{/other_user}","gists_url":"https://api.github.com/users/raphael-group/gists{/gist_id}","starred_url":"https://api.github.com/users/raphael-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphael-group/subscriptions","organizations_url":"https://api.github.com/users/raphael-group/orgs","repos_url":"https://api.github.com/users/raphael-group/repos","events_url":"https://api.github.com/users/raphael-group/events{/privacy}","received_events_url":"https://api.github.com/users/raphael-group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/raphael-group/magi","description":"A web application from the Raphael Lab for mutation annotation and genome interpretation.","fork":false,"url":"https://api.github.com/repos/raphael-group/magi","forks_url":"https://api.github.com/repos/raphael-group/magi/forks","keys_url":"https://api.github.com/repos/raphael-group/magi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raphael-group/magi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raphael-group/magi/teams","hooks_url":"https://api.github.com/repos/raphael-group/magi/hooks","issue_events_url":"https://api.github.com/repos/raphael-group/magi/issues/events{/number}","events_url":"https://api.github.com/repos/raphael-group/magi/events","assignees_url":"https://api.github.com/repos/raphael-group/magi/assignees{/user}","branches_url":"https://api.github.com/repos/raphael-group/magi/branches{/branch}","tags_url":"https://api.github.com/repos/raphael-group/magi/tags","blobs_url":"https://api.github.com/repos/raphael-group/magi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raphael-group/magi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raphael-group/magi/git/refs{/sha}","trees_url":"https://api.github.com/repos/raphael-group/magi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raphael-group/magi/statuses/{sha}","languages_url":"https://api.github.com/repos/raphael-group/magi/languages","stargazers_url":"https://api.github.com/repos/raphael-group/magi/stargazers","contributors_url":"https://api.github.com/repos/raphael-group/magi/contributors","subscribers_url":"https://api.github.com/repos/raphael-group/magi/subscribers","subscription_url":"https://api.github.com/repos/raphael-group/magi/subscription","commits_url":"https://api.github.com/repos/raphael-group/magi/commits{/sha}","git_commits_url":"https://api.github.com/repos/raphael-group/magi/git/commits{/sha}","comments_url":"https://api.github.com/repos/raphael-group/magi/comments{/number}","issue_comment_url":"https://api.github.com/repos/raphael-group/magi/issues/comments{/number}","contents_url":"https://api.github.com/repos/raphael-group/magi/contents/{+path}","compare_url":"https://api.github.com/repos/raphael-group/magi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raphael-group/magi/merges","archive_url":"https://api.github.com/repos/raphael-group/magi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raphael-group/magi/downloads","issues_url":"https://api.github.com/repos/raphael-group/magi/issues{/number}","pulls_url":"https://api.github.com/repos/raphael-group/magi/pulls{/number}","milestones_url":"https://api.github.com/repos/raphael-group/magi/milestones{/number}","notifications_url":"https://api.github.com/repos/raphael-group/magi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raphael-group/magi/labels{/name}","releases_url":"https://api.github.com/repos/raphael-group/magi/releases{/id}","created_at":"2014-09-08T17:49:27Z","updated_at":"2015-07-31T14:51:08Z","pushed_at":"2015-12-18T03:11:21Z","git_url":"git://github.com/raphael-group/magi.git","ssh_url":"git@github.com:raphael-group/magi.git","clone_url":"https://github.com/raphael-group/magi.git","svn_url":"https://github.com/raphael-group/magi","homepage":"http://magi.brown.edu","size":4140,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":10,"default_branch":"master"}},"base":{"label":"raphael-group:postgres","ref":"postgres","sha":"cebc293b1e76584000e06087712da845902eeb4b","user":{"login":"raphael-group","id":5168500,"avatar_url":"https://avatars.githubusercontent.com/u/5168500?v=3","gravatar_id":"","url":"https://api.github.com/users/raphael-group","html_url":"https://github.com/raphael-group","followers_url":"https://api.github.com/users/raphael-group/followers","following_url":"https://api.github.com/users/raphael-group/following{/other_user}","gists_url":"https://api.github.com/users/raphael-group/gists{/gist_id}","starred_url":"https://api.github.com/users/raphael-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphael-group/subscriptions","organizations_url":"https://api.github.com/users/raphael-group/orgs","repos_url":"https://api.github.com/users/raphael-group/repos","events_url":"https://api.github.com/users/raphael-group/events{/privacy}","received_events_url":"https://api.github.com/users/raphael-group/received_events","type":"Organization","site_admin":false},"repo":{"id":23801476,"name":"magi","full_name":"raphael-group/magi","owner":{"login":"raphael-group","id":5168500,"avatar_url":"https://avatars.githubusercontent.com/u/5168500?v=3","gravatar_id":"","url":"https://api.github.com/users/raphael-group","html_url":"https://github.com/raphael-group","followers_url":"https://api.github.com/users/raphael-group/followers","following_url":"https://api.github.com/users/raphael-group/following{/other_user}","gists_url":"https://api.github.com/users/raphael-group/gists{/gist_id}","starred_url":"https://api.github.com/users/raphael-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphael-group/subscriptions","organizations_url":"https://api.github.com/users/raphael-group/orgs","repos_url":"https://api.github.com/users/raphael-group/repos","events_url":"https://api.github.com/users/raphael-group/events{/privacy}","received_events_url":"https://api.github.com/users/raphael-group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/raphael-group/magi","description":"A web application from the Raphael Lab for mutation annotation and genome interpretation.","fork":false,"url":"https://api.github.com/repos/raphael-group/magi","forks_url":"https://api.github.com/repos/raphael-group/magi/forks","keys_url":"https://api.github.com/repos/raphael-group/magi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raphael-group/magi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raphael-group/magi/teams","hooks_url":"https://api.github.com/repos/raphael-group/magi/hooks","issue_events_url":"https://api.github.com/repos/raphael-group/magi/issues/events{/number}","events_url":"https://api.github.com/repos/raphael-group/magi/events","assignees_url":"https://api.github.com/repos/raphael-group/magi/assignees{/user}","branches_url":"https://api.github.com/repos/raphael-group/magi/branches{/branch}","tags_url":"https://api.github.com/repos/raphael-group/magi/tags","blobs_url":"https://api.github.com/repos/raphael-group/magi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raphael-group/magi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raphael-group/magi/git/refs{/sha}","trees_url":"https://api.github.com/repos/raphael-group/magi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raphael-group/magi/statuses/{sha}","languages_url":"https://api.github.com/repos/raphael-group/magi/languages","stargazers_url":"https://api.github.com/repos/raphael-group/magi/stargazers","contributors_url":"https://api.github.com/repos/raphael-group/magi/contributors","subscribers_url":"https://api.github.com/repos/raphael-group/magi/subscribers","subscription_url":"https://api.github.com/repos/raphael-group/magi/subscription","commits_url":"https://api.github.com/repos/raphael-group/magi/commits{/sha}","git_commits_url":"https://api.github.com/repos/raphael-group/magi/git/commits{/sha}","comments_url":"https://api.github.com/repos/raphael-group/magi/comments{/number}","issue_comment_url":"https://api.github.com/repos/raphael-group/magi/issues/comments{/number}","contents_url":"https://api.github.com/repos/raphael-group/magi/contents/{+path}","compare_url":"https://api.github.com/repos/raphael-group/magi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raphael-group/magi/merges","archive_url":"https://api.github.com/repos/raphael-group/magi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raphael-group/magi/downloads","issues_url":"https://api.github.com/repos/raphael-group/magi/issues{/number}","pulls_url":"https://api.github.com/repos/raphael-group/magi/pulls{/number}","milestones_url":"https://api.github.com/repos/raphael-group/magi/milestones{/number}","notifications_url":"https://api.github.com/repos/raphael-group/magi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raphael-group/magi/labels{/name}","releases_url":"https://api.github.com/repos/raphael-group/magi/releases{/id}","created_at":"2014-09-08T17:49:27Z","updated_at":"2015-07-31T14:51:08Z","pushed_at":"2015-12-18T03:11:21Z","git_url":"git://github.com/raphael-group/magi.git","ssh_url":"git@github.com:raphael-group/magi.git","clone_url":"https://github.com/raphael-group/magi.git","svn_url":"https://github.com/raphael-group/magi","homepage":"http://magi.brown.edu","size":4140,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/raphael-group/magi/pulls/26"},"html":{"href":"https://github.com/raphael-group/magi/pull/26"},"issue":{"href":"https://api.github.com/repos/raphael-group/magi/issues/26"},"comments":{"href":"https://api.github.com/repos/raphael-group/magi/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/raphael-group/magi/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/raphael-group/magi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/raphael-group/magi/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/raphael-group/magi/statuses/464191da99b37a18254e457db33e8c968eb5f463"}}}}