{"action":"created","comment":{"url":"https://api.github.com/repos/sorgerlab/indra/pulls/comments/136412401","pull_request_review_id":59948835,"id":136412401,"diff_hunk":"@@ -51,3 +56,20 @@ def test_get_mutations_ccle():\n     assert 'I208V' not in muts['A101D_SKIN']['BRAF']\n     assert len(muts['LOXIMVI_SKIN']['AKT1']) == 0\n     assert len(muts['A101D_SKIN']['AKT1']) == 0\n+\n+\n+def test_get_profile_data():\n+    profile_data = cbio_client.get_profile_data(cbio_client.ccle_study,\n+                                                ['BRAF', 'PTEN'],\n+                                                'COPY_NUMBER_ALTERATION',\n+                                                'all')\n+    assert profile_data['BT20_BREAST']['PTEN'] == -2\n+    assert profile_data['BT20_BREAST']['BRAF'] == 1\n+    assert profile_data['LOXIMVI_SKIN']['PTEN'] == 0\n+    assert profile_data['LOXIMVI_SKIN']['BRAF'] == 0\n+\n+\n+def test_get_ccle_cna():\n+    profile_data = cbio_client.get_ccle_cna(['BRAF'])\n+    assert profile_data['BT20_BREAST']['BRAF'] == 1\n+    assert profile_data['LOXIMVI_SKIN']['BRAF'] == 0","path":"indra/tests/test_cbio_client.py","position":50,"original_position":50,"commit_id":"a72dfcd5728e6ab36ece3737ca1ae39ac8a65686","original_commit_id":"a72dfcd5728e6ab36ece3737ca1ae39ac8a65686","user":{"login":"bgyori","id":5939016,"avatar_url":"https://avatars0.githubusercontent.com/u/5939016?v=4","gravatar_id":"","url":"https://api.github.com/users/bgyori","html_url":"https://github.com/bgyori","followers_url":"https://api.github.com/users/bgyori/followers","following_url":"https://api.github.com/users/bgyori/following{/other_user}","gists_url":"https://api.github.com/users/bgyori/gists{/gist_id}","starred_url":"https://api.github.com/users/bgyori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgyori/subscriptions","organizations_url":"https://api.github.com/users/bgyori/orgs","repos_url":"https://api.github.com/users/bgyori/repos","events_url":"https://api.github.com/users/bgyori/events{/privacy}","received_events_url":"https://api.github.com/users/bgyori/received_events","type":"User","site_admin":false},"body":"This test only works because of the hard-coded parameters in get_ccle_cna ","created_at":"2017-08-31T18:25:17Z","updated_at":"2017-08-31T18:43:18Z","html_url":"https://github.com/sorgerlab/indra/pull/279#discussion_r136412401","pull_request_url":"https://api.github.com/repos/sorgerlab/indra/pulls/279","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/sorgerlab/indra/pulls/comments/136412401"},"html":{"href":"https://github.com/sorgerlab/indra/pull/279#discussion_r136412401"},"pull_request":{"href":"https://api.github.com/repos/sorgerlab/indra/pulls/279"}}},"pull_request":{"url":"https://api.github.com/repos/sorgerlab/indra/pulls/279","id":138732951,"html_url":"https://github.com/sorgerlab/indra/pull/279","diff_url":"https://github.com/sorgerlab/indra/pull/279.diff","patch_url":"https://github.com/sorgerlab/indra/pull/279.patch","issue_url":"https://api.github.com/repos/sorgerlab/indra/issues/279","number":279,"state":"open","locked":false,"title":"Cbio client expanded functionality","user":{"login":"pvtodorov","id":13072605,"avatar_url":"https://avatars0.githubusercontent.com/u/13072605?v=4","gravatar_id":"","url":"https://api.github.com/users/pvtodorov","html_url":"https://github.com/pvtodorov","followers_url":"https://api.github.com/users/pvtodorov/followers","following_url":"https://api.github.com/users/pvtodorov/following{/other_user}","gists_url":"https://api.github.com/users/pvtodorov/gists{/gist_id}","starred_url":"https://api.github.com/users/pvtodorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvtodorov/subscriptions","organizations_url":"https://api.github.com/users/pvtodorov/orgs","repos_url":"https://api.github.com/users/pvtodorov/repos","events_url":"https://api.github.com/users/pvtodorov/events{/privacy}","received_events_url":"https://api.github.com/users/pvtodorov/received_events","type":"User","site_admin":false},"body":"- added function to get case lists for any study\r\n- added function to get genetic profile data for any study\r\n- added specialized function to get CCLE CNA data\r\n- added tests for getting profile data and CCLE CNA data\r\n- corrected minor PEP8 violations caught by linter in cbio_client and its tests\r\n","created_at":"2017-08-31T18:15:24Z","updated_at":"2017-08-31T18:43:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"866f975c164525ff16dd210dede70b183ad1cc67","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/sorgerlab/indra/pulls/279/commits","review_comments_url":"https://api.github.com/repos/sorgerlab/indra/pulls/279/comments","review_comment_url":"https://api.github.com/repos/sorgerlab/indra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sorgerlab/indra/issues/279/comments","statuses_url":"https://api.github.com/repos/sorgerlab/indra/statuses/a72dfcd5728e6ab36ece3737ca1ae39ac8a65686","head":{"label":"pvtodorov:cbio_client","ref":"cbio_client","sha":"a72dfcd5728e6ab36ece3737ca1ae39ac8a65686","user":{"login":"pvtodorov","id":13072605,"avatar_url":"https://avatars0.githubusercontent.com/u/13072605?v=4","gravatar_id":"","url":"https://api.github.com/users/pvtodorov","html_url":"https://github.com/pvtodorov","followers_url":"https://api.github.com/users/pvtodorov/followers","following_url":"https://api.github.com/users/pvtodorov/following{/other_user}","gists_url":"https://api.github.com/users/pvtodorov/gists{/gist_id}","starred_url":"https://api.github.com/users/pvtodorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvtodorov/subscriptions","organizations_url":"https://api.github.com/users/pvtodorov/orgs","repos_url":"https://api.github.com/users/pvtodorov/repos","events_url":"https://api.github.com/users/pvtodorov/events{/privacy}","received_events_url":"https://api.github.com/users/pvtodorov/received_events","type":"User","site_admin":false},"repo":{"id":67543600,"name":"indra","full_name":"pvtodorov/indra","owner":{"login":"pvtodorov","id":13072605,"avatar_url":"https://avatars0.githubusercontent.com/u/13072605?v=4","gravatar_id":"","url":"https://api.github.com/users/pvtodorov","html_url":"https://github.com/pvtodorov","followers_url":"https://api.github.com/users/pvtodorov/followers","following_url":"https://api.github.com/users/pvtodorov/following{/other_user}","gists_url":"https://api.github.com/users/pvtodorov/gists{/gist_id}","starred_url":"https://api.github.com/users/pvtodorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvtodorov/subscriptions","organizations_url":"https://api.github.com/users/pvtodorov/orgs","repos_url":"https://api.github.com/users/pvtodorov/repos","events_url":"https://api.github.com/users/pvtodorov/events{/privacy}","received_events_url":"https://api.github.com/users/pvtodorov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pvtodorov/indra","description":"Integrated Network and Dynamical Reasoning Assembler","fork":true,"url":"https://api.github.com/repos/pvtodorov/indra","forks_url":"https://api.github.com/repos/pvtodorov/indra/forks","keys_url":"https://api.github.com/repos/pvtodorov/indra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pvtodorov/indra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pvtodorov/indra/teams","hooks_url":"https://api.github.com/repos/pvtodorov/indra/hooks","issue_events_url":"https://api.github.com/repos/pvtodorov/indra/issues/events{/number}","events_url":"https://api.github.com/repos/pvtodorov/indra/events","assignees_url":"https://api.github.com/repos/pvtodorov/indra/assignees{/user}","branches_url":"https://api.github.com/repos/pvtodorov/indra/branches{/branch}","tags_url":"https://api.github.com/repos/pvtodorov/indra/tags","blobs_url":"https://api.github.com/repos/pvtodorov/indra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pvtodorov/indra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pvtodorov/indra/git/refs{/sha}","trees_url":"https://api.github.com/repos/pvtodorov/indra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pvtodorov/indra/statuses/{sha}","languages_url":"https://api.github.com/repos/pvtodorov/indra/languages","stargazers_url":"https://api.github.com/repos/pvtodorov/indra/stargazers","contributors_url":"https://api.github.com/repos/pvtodorov/indra/contributors","subscribers_url":"https://api.github.com/repos/pvtodorov/indra/subscribers","subscription_url":"https://api.github.com/repos/pvtodorov/indra/subscription","commits_url":"https://api.github.com/repos/pvtodorov/indra/commits{/sha}","git_commits_url":"https://api.github.com/repos/pvtodorov/indra/git/commits{/sha}","comments_url":"https://api.github.com/repos/pvtodorov/indra/comments{/number}","issue_comment_url":"https://api.github.com/repos/pvtodorov/indra/issues/comments{/number}","contents_url":"https://api.github.com/repos/pvtodorov/indra/contents/{+path}","compare_url":"https://api.github.com/repos/pvtodorov/indra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pvtodorov/indra/merges","archive_url":"https://api.github.com/repos/pvtodorov/indra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pvtodorov/indra/downloads","issues_url":"https://api.github.com/repos/pvtodorov/indra/issues{/number}","pulls_url":"https://api.github.com/repos/pvtodorov/indra/pulls{/number}","milestones_url":"https://api.github.com/repos/pvtodorov/indra/milestones{/number}","notifications_url":"https://api.github.com/repos/pvtodorov/indra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pvtodorov/indra/labels{/name}","releases_url":"https://api.github.com/repos/pvtodorov/indra/releases{/id}","deployments_url":"https://api.github.com/repos/pvtodorov/indra/deployments","created_at":"2016-09-06T20:20:39Z","updated_at":"2016-11-01T14:52:37Z","pushed_at":"2017-08-31T18:13:24Z","git_url":"git://github.com/pvtodorov/indra.git","ssh_url":"git@github.com:pvtodorov/indra.git","clone_url":"https://github.com/pvtodorov/indra.git","svn_url":"https://github.com/pvtodorov/indra","homepage":"","size":92882,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"sorgerlab:master","ref":"master","sha":"edcfa7c94ef53999ccbedb3a2f7b7046830c3bb7","user":{"login":"sorgerlab","id":432619,"avatar_url":"https://avatars3.githubusercontent.com/u/432619?v=4","gravatar_id":"","url":"https://api.github.com/users/sorgerlab","html_url":"https://github.com/sorgerlab","followers_url":"https://api.github.com/users/sorgerlab/followers","following_url":"https://api.github.com/users/sorgerlab/following{/other_user}","gists_url":"https://api.github.com/users/sorgerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/sorgerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorgerlab/subscriptions","organizations_url":"https://api.github.com/users/sorgerlab/orgs","repos_url":"https://api.github.com/users/sorgerlab/repos","events_url":"https://api.github.com/users/sorgerlab/events{/privacy}","received_events_url":"https://api.github.com/users/sorgerlab/received_events","type":"Organization","site_admin":false},"repo":{"id":22848436,"name":"indra","full_name":"sorgerlab/indra","owner":{"login":"sorgerlab","id":432619,"avatar_url":"https://avatars3.githubusercontent.com/u/432619?v=4","gravatar_id":"","url":"https://api.github.com/users/sorgerlab","html_url":"https://github.com/sorgerlab","followers_url":"https://api.github.com/users/sorgerlab/followers","following_url":"https://api.github.com/users/sorgerlab/following{/other_user}","gists_url":"https://api.github.com/users/sorgerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/sorgerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorgerlab/subscriptions","organizations_url":"https://api.github.com/users/sorgerlab/orgs","repos_url":"https://api.github.com/users/sorgerlab/repos","events_url":"https://api.github.com/users/sorgerlab/events{/privacy}","received_events_url":"https://api.github.com/users/sorgerlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sorgerlab/indra","description":"Integrated Network and Dynamical Reasoning Assembler","fork":false,"url":"https://api.github.com/repos/sorgerlab/indra","forks_url":"https://api.github.com/repos/sorgerlab/indra/forks","keys_url":"https://api.github.com/repos/sorgerlab/indra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sorgerlab/indra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sorgerlab/indra/teams","hooks_url":"https://api.github.com/repos/sorgerlab/indra/hooks","issue_events_url":"https://api.github.com/repos/sorgerlab/indra/issues/events{/number}","events_url":"https://api.github.com/repos/sorgerlab/indra/events","assignees_url":"https://api.github.com/repos/sorgerlab/indra/assignees{/user}","branches_url":"https://api.github.com/repos/sorgerlab/indra/branches{/branch}","tags_url":"https://api.github.com/repos/sorgerlab/indra/tags","blobs_url":"https://api.github.com/repos/sorgerlab/indra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sorgerlab/indra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sorgerlab/indra/git/refs{/sha}","trees_url":"https://api.github.com/repos/sorgerlab/indra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sorgerlab/indra/statuses/{sha}","languages_url":"https://api.github.com/repos/sorgerlab/indra/languages","stargazers_url":"https://api.github.com/repos/sorgerlab/indra/stargazers","contributors_url":"https://api.github.com/repos/sorgerlab/indra/contributors","subscribers_url":"https://api.github.com/repos/sorgerlab/indra/subscribers","subscription_url":"https://api.github.com/repos/sorgerlab/indra/subscription","commits_url":"https://api.github.com/repos/sorgerlab/indra/commits{/sha}","git_commits_url":"https://api.github.com/repos/sorgerlab/indra/git/commits{/sha}","comments_url":"https://api.github.com/repos/sorgerlab/indra/comments{/number}","issue_comment_url":"https://api.github.com/repos/sorgerlab/indra/issues/comments{/number}","contents_url":"https://api.github.com/repos/sorgerlab/indra/contents/{+path}","compare_url":"https://api.github.com/repos/sorgerlab/indra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sorgerlab/indra/merges","archive_url":"https://api.github.com/repos/sorgerlab/indra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sorgerlab/indra/downloads","issues_url":"https://api.github.com/repos/sorgerlab/indra/issues{/number}","pulls_url":"https://api.github.com/repos/sorgerlab/indra/pulls{/number}","milestones_url":"https://api.github.com/repos/sorgerlab/indra/milestones{/number}","notifications_url":"https://api.github.com/repos/sorgerlab/indra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sorgerlab/indra/labels{/name}","releases_url":"https://api.github.com/repos/sorgerlab/indra/releases{/id}","deployments_url":"https://api.github.com/repos/sorgerlab/indra/deployments","created_at":"2014-08-11T17:44:05Z","updated_at":"2017-08-22T18:22:05Z","pushed_at":"2017-08-31T18:15:25Z","git_url":"git://github.com/sorgerlab/indra.git","ssh_url":"git@github.com:sorgerlab/indra.git","clone_url":"https://github.com/sorgerlab/indra.git","svn_url":"https://github.com/sorgerlab/indra","homepage":"","size":92851,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":57,"forks":17,"open_issues":57,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sorgerlab/indra/pulls/279"},"html":{"href":"https://github.com/sorgerlab/indra/pull/279"},"issue":{"href":"https://api.github.com/repos/sorgerlab/indra/issues/279"},"comments":{"href":"https://api.github.com/repos/sorgerlab/indra/issues/279/comments"},"review_comments":{"href":"https://api.github.com/repos/sorgerlab/indra/pulls/279/comments"},"review_comment":{"href":"https://api.github.com/repos/sorgerlab/indra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sorgerlab/indra/pulls/279/commits"},"statuses":{"href":"https://api.github.com/repos/sorgerlab/indra/statuses/a72dfcd5728e6ab36ece3737ca1ae39ac8a65686"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bgyori"}}