{"action":"closed","number":206,"pull_request":{"url":"https://api.github.com/repos/pysb/pysb/pulls/206","id":70151759,"html_url":"https://github.com/pysb/pysb/pull/206","diff_url":"https://github.com/pysb/pysb/pull/206.diff","patch_url":"https://github.com/pysb/pysb/pull/206.patch","issue_url":"https://api.github.com/repos/pysb/pysb/issues/206","number":206,"state":"closed","locked":false,"title":"BioNetGen .bngl model file import for PySB","user":{"login":"alubbock","id":2590257,"avatar_url":"https://avatars.githubusercontent.com/u/2590257?v=3","gravatar_id":"","url":"https://api.github.com/users/alubbock","html_url":"https://github.com/alubbock","followers_url":"https://api.github.com/users/alubbock/followers","following_url":"https://api.github.com/users/alubbock/following{/other_user}","gists_url":"https://api.github.com/users/alubbock/gists{/gist_id}","starred_url":"https://api.github.com/users/alubbock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alubbock/subscriptions","organizations_url":"https://api.github.com/users/alubbock/orgs","repos_url":"https://api.github.com/users/alubbock/repos","events_url":"https://api.github.com/users/alubbock/events{/privacy}","received_events_url":"https://api.github.com/users/alubbock/received_events","type":"User","site_admin":false},"body":"Adds a new tool `pysb.importers.bngl`, which reads in a .bngl file using the BioNetGen Console to convert them to XML, then parsing that XML into a PySB Model object. The big idea here is to give us access to many of the models written in BNGL automatically. In addition, it opens up the possibility of using BioNetGen's [Atomizer](http://bionetgen.org/index.php/SBML2BNGL) to read SBML models into PySB automatically, by doing SBML->BNGL->PySB.\r\n\r\nThe BNGL import works, but has a few limitations due to PySB lack of support for local functions, monomers containing multiple sites with the same name, and multiple binding to the same site. See documentation for further details. Nevertheless, it should work for most use cases.\r\n\r\nExample usage:\r\n```python\r\nfrom pysb.importers.bngl import model_from_bngl\r\nmodel = model_from_bngl('/path/to/my.bngl')\r\n```\r\n\r\nThis PR also fixes #207 in 6e2087f, fixes #208 in f7000d8, and fixes #209 in bd447df.","created_at":"2016-05-16T05:29:46Z","updated_at":"2016-10-06T20:58:42Z","closed_at":"2016-10-06T20:58:42Z","merged_at":"2016-10-06T20:58:42Z","merge_commit_sha":"0777885e98dbe00a4c5a6d528bc240cfd3bae21d","assignee":{"login":"jmuhlich","id":277154,"avatar_url":"https://avatars.githubusercontent.com/u/277154?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuhlich","html_url":"https://github.com/jmuhlich","followers_url":"https://api.github.com/users/jmuhlich/followers","following_url":"https://api.github.com/users/jmuhlich/following{/other_user}","gists_url":"https://api.github.com/users/jmuhlich/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuhlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuhlich/subscriptions","organizations_url":"https://api.github.com/users/jmuhlich/orgs","repos_url":"https://api.github.com/users/jmuhlich/repos","events_url":"https://api.github.com/users/jmuhlich/events{/privacy}","received_events_url":"https://api.github.com/users/jmuhlich/received_events","type":"User","site_admin":false},"assignees":[{"login":"jmuhlich","id":277154,"avatar_url":"https://avatars.githubusercontent.com/u/277154?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuhlich","html_url":"https://github.com/jmuhlich","followers_url":"https://api.github.com/users/jmuhlich/followers","following_url":"https://api.github.com/users/jmuhlich/following{/other_user}","gists_url":"https://api.github.com/users/jmuhlich/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuhlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuhlich/subscriptions","organizations_url":"https://api.github.com/users/jmuhlich/orgs","repos_url":"https://api.github.com/users/jmuhlich/repos","events_url":"https://api.github.com/users/jmuhlich/events{/privacy}","received_events_url":"https://api.github.com/users/jmuhlich/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pysb/pysb/pulls/206/commits","review_comments_url":"https://api.github.com/repos/pysb/pysb/pulls/206/comments","review_comment_url":"https://api.github.com/repos/pysb/pysb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pysb/pysb/issues/206/comments","statuses_url":"https://api.github.com/repos/pysb/pysb/statuses/c1e46e2a1fcfe38e19c161bdeee7840e032127b2","head":{"label":"alubbock:bngl_importer","ref":"bngl_importer","sha":"c1e46e2a1fcfe38e19c161bdeee7840e032127b2","user":{"login":"alubbock","id":2590257,"avatar_url":"https://avatars.githubusercontent.com/u/2590257?v=3","gravatar_id":"","url":"https://api.github.com/users/alubbock","html_url":"https://github.com/alubbock","followers_url":"https://api.github.com/users/alubbock/followers","following_url":"https://api.github.com/users/alubbock/following{/other_user}","gists_url":"https://api.github.com/users/alubbock/gists{/gist_id}","starred_url":"https://api.github.com/users/alubbock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alubbock/subscriptions","organizations_url":"https://api.github.com/users/alubbock/orgs","repos_url":"https://api.github.com/users/alubbock/repos","events_url":"https://api.github.com/users/alubbock/events{/privacy}","received_events_url":"https://api.github.com/users/alubbock/received_events","type":"User","site_admin":false},"repo":{"id":13860026,"name":"pysb","full_name":"alubbock/pysb","owner":{"login":"alubbock","id":2590257,"avatar_url":"https://avatars.githubusercontent.com/u/2590257?v=3","gravatar_id":"","url":"https://api.github.com/users/alubbock","html_url":"https://github.com/alubbock","followers_url":"https://api.github.com/users/alubbock/followers","following_url":"https://api.github.com/users/alubbock/following{/other_user}","gists_url":"https://api.github.com/users/alubbock/gists{/gist_id}","starred_url":"https://api.github.com/users/alubbock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alubbock/subscriptions","organizations_url":"https://api.github.com/users/alubbock/orgs","repos_url":"https://api.github.com/users/alubbock/repos","events_url":"https://api.github.com/users/alubbock/events{/privacy}","received_events_url":"https://api.github.com/users/alubbock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alubbock/pysb","description":"Python framework for Systems Biology modeling","fork":true,"url":"https://api.github.com/repos/alubbock/pysb","forks_url":"https://api.github.com/repos/alubbock/pysb/forks","keys_url":"https://api.github.com/repos/alubbock/pysb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alubbock/pysb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alubbock/pysb/teams","hooks_url":"https://api.github.com/repos/alubbock/pysb/hooks","issue_events_url":"https://api.github.com/repos/alubbock/pysb/issues/events{/number}","events_url":"https://api.github.com/repos/alubbock/pysb/events","assignees_url":"https://api.github.com/repos/alubbock/pysb/assignees{/user}","branches_url":"https://api.github.com/repos/alubbock/pysb/branches{/branch}","tags_url":"https://api.github.com/repos/alubbock/pysb/tags","blobs_url":"https://api.github.com/repos/alubbock/pysb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alubbock/pysb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alubbock/pysb/git/refs{/sha}","trees_url":"https://api.github.com/repos/alubbock/pysb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alubbock/pysb/statuses/{sha}","languages_url":"https://api.github.com/repos/alubbock/pysb/languages","stargazers_url":"https://api.github.com/repos/alubbock/pysb/stargazers","contributors_url":"https://api.github.com/repos/alubbock/pysb/contributors","subscribers_url":"https://api.github.com/repos/alubbock/pysb/subscribers","subscription_url":"https://api.github.com/repos/alubbock/pysb/subscription","commits_url":"https://api.github.com/repos/alubbock/pysb/commits{/sha}","git_commits_url":"https://api.github.com/repos/alubbock/pysb/git/commits{/sha}","comments_url":"https://api.github.com/repos/alubbock/pysb/comments{/number}","issue_comment_url":"https://api.github.com/repos/alubbock/pysb/issues/comments{/number}","contents_url":"https://api.github.com/repos/alubbock/pysb/contents/{+path}","compare_url":"https://api.github.com/repos/alubbock/pysb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alubbock/pysb/merges","archive_url":"https://api.github.com/repos/alubbock/pysb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alubbock/pysb/downloads","issues_url":"https://api.github.com/repos/alubbock/pysb/issues{/number}","pulls_url":"https://api.github.com/repos/alubbock/pysb/pulls{/number}","milestones_url":"https://api.github.com/repos/alubbock/pysb/milestones{/number}","notifications_url":"https://api.github.com/repos/alubbock/pysb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alubbock/pysb/labels{/name}","releases_url":"https://api.github.com/repos/alubbock/pysb/releases{/id}","deployments_url":"https://api.github.com/repos/alubbock/pysb/deployments","created_at":"2013-10-25T12:33:07Z","updated_at":"2014-10-01T09:47:06Z","pushed_at":"2016-10-05T22:19:50Z","git_url":"git://github.com/alubbock/pysb.git","ssh_url":"git@github.com:alubbock/pysb.git","clone_url":"https://github.com/alubbock/pysb.git","svn_url":"https://github.com/alubbock/pysb","homepage":"","size":8770,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"pysb:master","ref":"master","sha":"77c81599403cd8c69b583ebceba1a2b96c9a3273","user":{"login":"pysb","id":1583829,"avatar_url":"https://avatars.githubusercontent.com/u/1583829?v=3","gravatar_id":"","url":"https://api.github.com/users/pysb","html_url":"https://github.com/pysb","followers_url":"https://api.github.com/users/pysb/followers","following_url":"https://api.github.com/users/pysb/following{/other_user}","gists_url":"https://api.github.com/users/pysb/gists{/gist_id}","starred_url":"https://api.github.com/users/pysb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pysb/subscriptions","organizations_url":"https://api.github.com/users/pysb/orgs","repos_url":"https://api.github.com/users/pysb/repos","events_url":"https://api.github.com/users/pysb/events{/privacy}","received_events_url":"https://api.github.com/users/pysb/received_events","type":"Organization","site_admin":false},"repo":{"id":972691,"name":"pysb","full_name":"pysb/pysb","owner":{"login":"pysb","id":1583829,"avatar_url":"https://avatars.githubusercontent.com/u/1583829?v=3","gravatar_id":"","url":"https://api.github.com/users/pysb","html_url":"https://github.com/pysb","followers_url":"https://api.github.com/users/pysb/followers","following_url":"https://api.github.com/users/pysb/following{/other_user}","gists_url":"https://api.github.com/users/pysb/gists{/gist_id}","starred_url":"https://api.github.com/users/pysb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pysb/subscriptions","organizations_url":"https://api.github.com/users/pysb/orgs","repos_url":"https://api.github.com/users/pysb/repos","events_url":"https://api.github.com/users/pysb/events{/privacy}","received_events_url":"https://api.github.com/users/pysb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pysb/pysb","description":"Python framework for Systems Biology modeling","fork":false,"url":"https://api.github.com/repos/pysb/pysb","forks_url":"https://api.github.com/repos/pysb/pysb/forks","keys_url":"https://api.github.com/repos/pysb/pysb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pysb/pysb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pysb/pysb/teams","hooks_url":"https://api.github.com/repos/pysb/pysb/hooks","issue_events_url":"https://api.github.com/repos/pysb/pysb/issues/events{/number}","events_url":"https://api.github.com/repos/pysb/pysb/events","assignees_url":"https://api.github.com/repos/pysb/pysb/assignees{/user}","branches_url":"https://api.github.com/repos/pysb/pysb/branches{/branch}","tags_url":"https://api.github.com/repos/pysb/pysb/tags","blobs_url":"https://api.github.com/repos/pysb/pysb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pysb/pysb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pysb/pysb/git/refs{/sha}","trees_url":"https://api.github.com/repos/pysb/pysb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pysb/pysb/statuses/{sha}","languages_url":"https://api.github.com/repos/pysb/pysb/languages","stargazers_url":"https://api.github.com/repos/pysb/pysb/stargazers","contributors_url":"https://api.github.com/repos/pysb/pysb/contributors","subscribers_url":"https://api.github.com/repos/pysb/pysb/subscribers","subscription_url":"https://api.github.com/repos/pysb/pysb/subscription","commits_url":"https://api.github.com/repos/pysb/pysb/commits{/sha}","git_commits_url":"https://api.github.com/repos/pysb/pysb/git/commits{/sha}","comments_url":"https://api.github.com/repos/pysb/pysb/comments{/number}","issue_comment_url":"https://api.github.com/repos/pysb/pysb/issues/comments{/number}","contents_url":"https://api.github.com/repos/pysb/pysb/contents/{+path}","compare_url":"https://api.github.com/repos/pysb/pysb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pysb/pysb/merges","archive_url":"https://api.github.com/repos/pysb/pysb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pysb/pysb/downloads","issues_url":"https://api.github.com/repos/pysb/pysb/issues{/number}","pulls_url":"https://api.github.com/repos/pysb/pysb/pulls{/number}","milestones_url":"https://api.github.com/repos/pysb/pysb/milestones{/number}","notifications_url":"https://api.github.com/repos/pysb/pysb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pysb/pysb/labels{/name}","releases_url":"https://api.github.com/repos/pysb/pysb/releases{/id}","deployments_url":"https://api.github.com/repos/pysb/pysb/deployments","created_at":"2010-10-08T16:51:11Z","updated_at":"2016-09-28T00:03:49Z","pushed_at":"2016-10-06T20:58:42Z","git_url":"git://github.com/pysb/pysb.git","ssh_url":"git@github.com:pysb/pysb.git","clone_url":"https://github.com/pysb/pysb.git","svn_url":"https://github.com/pysb/pysb","homepage":"","size":7271,"stargazers_count":37,"watchers_count":37,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":70,"forks":34,"open_issues":70,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pysb/pysb/pulls/206"},"html":{"href":"https://github.com/pysb/pysb/pull/206"},"issue":{"href":"https://api.github.com/repos/pysb/pysb/issues/206"},"comments":{"href":"https://api.github.com/repos/pysb/pysb/issues/206/comments"},"review_comments":{"href":"https://api.github.com/repos/pysb/pysb/pulls/206/comments"},"review_comment":{"href":"https://api.github.com/repos/pysb/pysb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pysb/pysb/pulls/206/commits"},"statuses":{"href":"https://api.github.com/repos/pysb/pysb/statuses/c1e46e2a1fcfe38e19c161bdeee7840e032127b2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jmuhlich","id":277154,"avatar_url":"https://avatars.githubusercontent.com/u/277154?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuhlich","html_url":"https://github.com/jmuhlich","followers_url":"https://api.github.com/users/jmuhlich/followers","following_url":"https://api.github.com/users/jmuhlich/following{/other_user}","gists_url":"https://api.github.com/users/jmuhlich/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuhlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuhlich/subscriptions","organizations_url":"https://api.github.com/users/jmuhlich/orgs","repos_url":"https://api.github.com/users/jmuhlich/repos","events_url":"https://api.github.com/users/jmuhlich/events{/privacy}","received_events_url":"https://api.github.com/users/jmuhlich/received_events","type":"User","site_admin":false},"comments":11,"review_comments":33,"commits":21,"additions":692,"deletions":34,"changed_files":8}}
{"actor":{"display_login":"jmuhlich"}}