GitHub PullRequestEvent at 2014-02-10 01:00:13
Repository: biopython
Actor: biologyguy
Payload: {"action":"opened","number":283,"pull_request":{"url":"https://api.github.com/repos/biopython/biopython/pulls/283","id":12356196,"html_url":"https://github.com/biopython/biopython/pull/283","diff_url":"https://github.com/biopython/biopython/pull/283.diff","patch_url":"https://github.com/biopython/biopython/pull/283.patch","issue_url":"https://api.github.com/repos/biopython/biopython/issues/283","number":283,"state":"open","title":"SubsMat.MatrixInfo","user":{"login":"biologyguy","id":2570191,"avatar_url":"https://gravatar.com/avatar/2529c7a350c7665df3acdcd073f75167?d=https%3A%2F%2Fidenticons.github.com%2Fec91f25f4a1aae69eba91ca5fbbf3720.png&r=x","gravatar_id":"2529c7a350c7665df3acdcd073f75167","url":"https://api.github.com/users/biologyguy","html_url":"https://github.com/biologyguy","followers_url":"https://api.github.com/users/biologyguy/followers","following_url":"https://api.github.com/users/biologyguy/following{/other_user}","gists_url":"https://api.github.com/users/biologyguy/gists{/gist_id}","starred_url":"https://api.github.com/users/biologyguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biologyguy/subscriptions","organizations_url":"https://api.github.com/users/biologyguy/orgs","repos_url":"https://api.github.com/users/biologyguy/repos","events_url":"https://api.github.com/users/biologyguy/events{/privacy}","received_events_url":"https://api.github.com/users/biologyguy/received_events","type":"User","site_admin":false},"body":"I've added two more matrices to the list (PHAT75/73 and SLIM161, both for transmembrane domains), and a function (mirror_matrix) that will take any of the dictionaries stored in MatrixInfo and return a new dictionary that includes all of the values in both key orders. The reason for the function: \r\n>\\>\\>\\> blosum62 = MatrixInfo.blosum62\r\n>\\>\\>\\> blosum62[(\"W\",\"F\")]\r\n1\r\n>\\>\\>\\> blosum62[(\"F\",\"W\")]\r\nKeyError \r\n\r\nbut:\r\n>\\>\\>\\> blosum62 = MatrixInfo.mirror_matrix(MatrixInfo.blosum62)\r\n>\\>\\>\\> blosum62[(\"W\",\"F\")]\r\n1\r\n>\\>\\>\\> blosum62[(\"F\",\"W\")]\r\n1","created_at":"2014-02-10T01:00:13Z","updated_at":"2014-02-10T01:00:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/biopython/biopython/pulls/283/commits","review_comments_url":"https://api.github.com/repos/biopython/biopython/pulls/283/comments","review_comment_url":"https://api.github.com/repos/biopython/biopython/pulls/comments/{number}","comments_url":"https://api.github.com/repos/biopython/biopython/issues/283/comments","statuses_url":"https://api.github.com/repos/biopython/biopython/statuses/6a199db1a48c9a257fd708eec58ae462795d1406","head":{"label":"biologyguy:master","ref":"master","sha":"6a199db1a48c9a257fd708eec58ae462795d1406","user":{"login":"biologyguy","id":2570191,"avatar_url":"https://gravatar.com/avatar/2529c7a350c7665df3acdcd073f75167?d=https%3A%2F%2Fidenticons.github.com%2Fec91f25f4a1aae69eba91ca5fbbf3720.png&r=x","gravatar_id":"2529c7a350c7665df3acdcd073f75167","url":"https://api.github.com/users/biologyguy","html_url":"https://github.com/biologyguy","followers_url":"https://api.github.com/users/biologyguy/followers","following_url":"https://api.github.com/users/biologyguy/following{/other_user}","gists_url":"https://api.github.com/users/biologyguy/gists{/gist_id}","starred_url":"https://api.github.com/users/biologyguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biologyguy/subscriptions","organizations_url":"https://api.github.com/users/biologyguy/orgs","repos_url":"https://api.github.com/users/biologyguy/repos","events_url":"https://api.github.com/users/biologyguy/events{/privacy}","received_events_url":"https://api.github.com/users/biologyguy/received_events","type":"User","site_admin":false},"repo":{"id":16670741,"name":"biopython","full_name":"biologyguy/biopython","owner":{"login":"biologyguy","id":2570191,"avatar_url":"https://gravatar.com/avatar/2529c7a350c7665df3acdcd073f75167?d=https%3A%2F%2Fidenticons.github.com%2Fec91f25f4a1aae69eba91ca5fbbf3720.png&r=x","gravatar_id":"2529c7a350c7665df3acdcd073f75167","url":"https://api.github.com/users/biologyguy","html_url":"https://github.com/biologyguy","followers_url":"https://api.github.com/users/biologyguy/followers","following_url":"https://api.github.com/users/biologyguy/following{/other_user}","gists_url":"https://api.github.com/users/biologyguy/gists{/gist_id}","starred_url":"https://api.github.com/users/biologyguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biologyguy/subscriptions","organizations_url":"https://api.github.com/users/biologyguy/orgs","repos_url":"https://api.github.com/users/biologyguy/repos","events_url":"https://api.github.com/users/biologyguy/events{/privacy}","received_events_url":"https://api.github.com/users/biologyguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/biologyguy/biopython","description":"Official git repository for Biopython (converted from CVS)","fork":true,"url":"https://api.github.com/repos/biologyguy/biopython","forks_url":"https://api.github.com/repos/biologyguy/biopython/forks","keys_url":"https://api.github.com/repos/biologyguy/biopython/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biologyguy/biopython/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biologyguy/biopython/teams","hooks_url":"https://api.github.com/repos/biologyguy/biopython/hooks","issue_events_url":"https://api.github.com/repos/biologyguy/biopython/issues/events{/number}","events_url":"https://api.github.com/repos/biologyguy/biopython/events","assignees_url":"https://api.github.com/repos/biologyguy/biopython/assignees{/user}","branches_url":"https://api.github.com/repos/biologyguy/biopython/branches{/branch}","tags_url":"https://api.github.com/repos/biologyguy/biopython/tags","blobs_url":"https://api.github.com/repos/biologyguy/biopython/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biologyguy/biopython/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biologyguy/biopython/git/refs{/sha}","trees_url":"https://api.github.com/repos/biologyguy/biopython/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biologyguy/biopython/statuses/{sha}","languages_url":"https://api.github.com/repos/biologyguy/biopython/languages","stargazers_url":"https://api.github.com/repos/biologyguy/biopython/stargazers","contributors_url":"https://api.github.com/repos/biologyguy/biopython/contributors","subscribers_url":"https://api.github.com/repos/biologyguy/biopython/subscribers","subscription_url":"https://api.github.com/repos/biologyguy/biopython/subscription","commits_url":"https://api.github.com/repos/biologyguy/biopython/commits{/sha}","git_commits_url":"https://api.github.com/repos/biologyguy/biopython/git/commits{/sha}","comments_url":"https://api.github.com/repos/biologyguy/biopython/comments{/number}","issue_comment_url":"https://api.github.com/repos/biologyguy/biopython/issues/comments/{number}","contents_url":"https://api.github.com/repos/biologyguy/biopython/contents/{+path}","compare_url":"https://api.github.com/repos/biologyguy/biopython/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biologyguy/biopython/merges","archive_url":"https://api.github.com/repos/biologyguy/biopython/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biologyguy/biopython/downloads","issues_url":"https://api.github.com/repos/biologyguy/biopython/issues{/number}","pulls_url":"https://api.github.com/repos/biologyguy/biopython/pulls{/number}","milestones_url":"https://api.github.com/repos/biologyguy/biopython/milestones{/number}","notifications_url":"https://api.github.com/repos/biologyguy/biopython/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biologyguy/biopython/labels{/name}","releases_url":"https://api.github.com/repos/biologyguy/biopython/releases{/id}","created_at":"2014-02-09T17:04:29Z","updated_at":"2014-02-10T01:00:13Z","pushed_at":"2014-02-10T00:35:56Z","git_url":"git://github.com/biologyguy/biopython.git","ssh_url":"git@github.com:biologyguy/biopython.git","clone_url":"https://github.com/biologyguy/biopython.git","svn_url":"https://github.com/biologyguy/biopython","homepage":"http://biopython.org/","size":43322,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"biopython:master","ref":"master","sha":"43d3ef3dab642b1f1f6f03d15cfee09312897ace","user":{"login":"biopython","id":54555,"avatar_url":"https://gravatar.com/avatar/e17c48d1ab6c19cc203ad82d691e3806?d=https%3A%2F%2Fidenticons.github.com%2F47820c9bf8a7505b11289bab529c7e22.png&r=x","gravatar_id":"e17c48d1ab6c19cc203ad82d691e3806","url":"https://api.github.com/users/biopython","html_url":"https://github.com/biopython","followers_url":"https://api.github.com/users/biopython/followers","following_url":"https://api.github.com/users/biopython/following{/other_user}","gists_url":"https://api.github.com/users/biopython/gists{/gist_id}","starred_url":"https://api.github.com/users/biopython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biopython/subscriptions","organizations_url":"https://api.github.com/users/biopython/orgs","repos_url":"https://api.github.com/users/biopython/repos","events_url":"https://api.github.com/users/biopython/events{/privacy}","received_events_url":"https://api.github.com/users/biopython/received_events","type":"Organization","site_admin":false},"repo":{"id":151541,"name":"biopython","full_name":"biopython/biopython","owner":{"login":"biopython","id":54555,"avatar_url":"https://gravatar.com/avatar/e17c48d1ab6c19cc203ad82d691e3806?d=https%3A%2F%2Fidenticons.github.com%2F47820c9bf8a7505b11289bab529c7e22.png&r=x","gravatar_id":"e17c48d1ab6c19cc203ad82d691e3806","url":"https://api.github.com/users/biopython","html_url":"https://github.com/biopython","followers_url":"https://api.github.com/users/biopython/followers","following_url":"https://api.github.com/users/biopython/following{/other_user}","gists_url":"https://api.github.com/users/biopython/gists{/gist_id}","starred_url":"https://api.github.com/users/biopython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biopython/subscriptions","organizations_url":"https://api.github.com/users/biopython/orgs","repos_url":"https://api.github.com/users/biopython/repos","events_url":"https://api.github.com/users/biopython/events{/privacy}","received_events_url":"https://api.github.com/users/biopython/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biopython/biopython","description":"Official git repository for Biopython (converted from CVS)","fork":false,"url":"https://api.github.com/repos/biopython/biopython","forks_url":"https://api.github.com/repos/biopython/biopython/forks","keys_url":"https://api.github.com/repos/biopython/biopython/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biopython/biopython/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biopython/biopython/teams","hooks_url":"https://api.github.com/repos/biopython/biopython/hooks","issue_events_url":"https://api.github.com/repos/biopython/biopython/issues/events{/number}","events_url":"https://api.github.com/repos/biopython/biopython/events","assignees_url":"https://api.github.com/repos/biopython/biopython/assignees{/user}","branches_url":"https://api.github.com/repos/biopython/biopython/branches{/branch}","tags_url":"https://api.github.com/repos/biopython/biopython/tags","blobs_url":"https://api.github.com/repos/biopython/biopython/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biopython/biopython/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biopython/biopython/git/refs{/sha}","trees_url":"https://api.github.com/repos/biopython/biopython/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biopython/biopython/statuses/{sha}","languages_url":"https://api.github.com/repos/biopython/biopython/languages","stargazers_url":"https://api.github.com/repos/biopython/biopython/stargazers","contributors_url":"https://api.github.com/repos/biopython/biopython/contributors","subscribers_url":"https://api.github.com/repos/biopython/biopython/subscribers","subscription_url":"https://api.github.com/repos/biopython/biopython/subscription","commits_url":"https://api.github.com/repos/biopython/biopython/commits{/sha}","git_commits_url":"https://api.github.com/repos/biopython/biopython/git/commits{/sha}","comments_url":"https://api.github.com/repos/biopython/biopython/comments{/number}","issue_comment_url":"https://api.github.com/repos/biopython/biopython/issues/comments/{number}","contents_url":"https://api.github.com/repos/biopython/biopython/contents/{+path}","compare_url":"https://api.github.com/repos/biopython/biopython/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biopython/biopython/merges","archive_url":"https://api.github.com/repos/biopython/biopython/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biopython/biopython/downloads","issues_url":"https://api.github.com/repos/biopython/biopython/issues{/number}","pulls_url":"https://api.github.com/repos/biopython/biopython/pulls{/number}","milestones_url":"https://api.github.com/repos/biopython/biopython/milestones{/number}","notifications_url":"https://api.github.com/repos/biopython/biopython/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biopython/biopython/labels{/name}","releases_url":"https://api.github.com/repos/biopython/biopython/releases{/id}","created_at":"2009-03-15T21:09:53Z","updated_at":"2014-02-09T16:14:25Z","pushed_at":"2014-02-09T16:14:25Z","git_url":"git://github.com/biopython/biopython.git","ssh_url":"git@github.com:biopython/biopython.git","clone_url":"https://github.com/biopython/biopython.git","svn_url":"https://github.com/biopython/biopython","homepage":"http://biopython.org/","size":43322,"stargazers_count":439,"watchers_count":439,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":false,"forks_count":243,"mirror_url":null,"open_issues_count":42,"forks":243,"open_issues":42,"watchers":439,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biopython/biopython/pulls/283"},"html":{"href":"https://github.com/biopython/biopython/pull/283"},"issue":{"href":"https://api.github.com/repos/biopython/biopython/issues/283"},"comments":{"href":"https://api.github.com/repos/biopython/biopython/issues/283/comments"},"review_comments":{"href":"https://api.github.com/repos/biopython/biopython/pulls/283/comments"},"review_comment":{"href":"https://api.github.com/repos/biopython/biopython/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/biopython/biopython/pulls/283/commits"},"statuses":{"href":"https://api.github.com/repos/biopython/biopython/statuses/6a199db1a48c9a257fd708eec58ae462795d1406"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":186,"deletions":3,"changed_files":1}}