{"action":"created","comment":{"url":"https://api.github.com/repos/ShobiStassen/PARC/pulls/comments/334138629","pull_request_review_id":300878432,"id":334138629,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzNDEzODYyOQ==","diff_hunk":"@@ -216,17 +217,17 @@ def run_subPARC(self):\n         #print('average degree of graph is %.1f' % (np.mean(G_sim.degree())))\n         G_sim.simplify(combine_edges='sum')  # \"first\"\n         #print('average degree of SIMPLE graph is %.1f' % (np.mean(G_sim.degree())))\n-        print('commencing community detection')\n+        print('Starting community detection')\n         if jac_weighted_edges == True:\n             start_leiden = time.time()\n             #print('call leiden on weighted graph for ', self.n_iter_leiden, 'iterations')\n             partition = leidenalg.find_partition(G_sim, leidenalg.ModularityVertexPartition, weights='weight',\n-                                                 n_iterations=self.n_iter_leiden)\n+                                                 n_iterations=self.n_iter_leiden, seed=self.random_seed)\n             print(time.time() - start_leiden)\n         else:\n             start_leiden = time.time()\n             #print('call leiden on unweighted graph', self.n_iter_leiden, 'iterations')\n-            partition = leidenalg.find_partition(G_sim, leidenalg.ModularityVertexPartition, n_iterations=self.n_iter_leiden)\n+            partition = leidenalg.find_partition(G_sim, leidenalg.ModularityVertexPartition, n_iterations=self.n_iter_leiden, seed=self.random_seed)","path":"parc/_parc.py","position":74,"original_position":74,"commit_id":"c91e5afdf79cfdec7185925dff85ac7f5dd918e7","original_commit_id":"c91e5afdf79cfdec7185925dff85ac7f5dd918e7","user":{"login":"wyattmcdonnell","id":18267139,"node_id":"MDQ6VXNlcjE4MjY3MTM5","avatar_url":"https://avatars3.githubusercontent.com/u/18267139?v=4","gravatar_id":"","url":"https://api.github.com/users/wyattmcdonnell","html_url":"https://github.com/wyattmcdonnell","followers_url":"https://api.github.com/users/wyattmcdonnell/followers","following_url":"https://api.github.com/users/wyattmcdonnell/following{/other_user}","gists_url":"https://api.github.com/users/wyattmcdonnell/gists{/gist_id}","starred_url":"https://api.github.com/users/wyattmcdonnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyattmcdonnell/subscriptions","organizations_url":"https://api.github.com/users/wyattmcdonnell/orgs","repos_url":"https://api.github.com/users/wyattmcdonnell/repos","events_url":"https://api.github.com/users/wyattmcdonnell/events{/privacy}","received_events_url":"https://api.github.com/users/wyattmcdonnell/received_events","type":"User","site_admin":false},"body":"Pass `random_seed` to `leidenalg`'s `find_partition()`.","created_at":"2019-10-11T19:14:59Z","updated_at":"2019-10-11T19:15:27Z","html_url":"https://github.com/ShobiStassen/PARC/pull/1#discussion_r334138629","pull_request_url":"https://api.github.com/repos/ShobiStassen/PARC/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ShobiStassen/PARC/pulls/comments/334138629"},"html":{"href":"https://github.com/ShobiStassen/PARC/pull/1#discussion_r334138629"},"pull_request":{"href":"https://api.github.com/repos/ShobiStassen/PARC/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ShobiStassen/PARC/pulls/1","id":327331691,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI3MzMxNjkx","html_url":"https://github.com/ShobiStassen/PARC/pull/1","diff_url":"https://github.com/ShobiStassen/PARC/pull/1.diff","patch_url":"https://github.com/ShobiStassen/PARC/pull/1.patch","issue_url":"https://api.github.com/repos/ShobiStassen/PARC/issues/1","number":1,"state":"open","locked":false,"title":"Add support for reproducible Leiden clustering","user":{"login":"wyattmcdonnell","id":18267139,"node_id":"MDQ6VXNlcjE4MjY3MTM5","avatar_url":"https://avatars3.githubusercontent.com/u/18267139?v=4","gravatar_id":"","url":"https://api.github.com/users/wyattmcdonnell","html_url":"https://github.com/wyattmcdonnell","followers_url":"https://api.github.com/users/wyattmcdonnell/followers","following_url":"https://api.github.com/users/wyattmcdonnell/following{/other_user}","gists_url":"https://api.github.com/users/wyattmcdonnell/gists{/gist_id}","starred_url":"https://api.github.com/users/wyattmcdonnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyattmcdonnell/subscriptions","organizations_url":"https://api.github.com/users/wyattmcdonnell/orgs","repos_url":"https://api.github.com/users/wyattmcdonnell/repos","events_url":"https://api.github.com/users/wyattmcdonnell/events{/privacy}","received_events_url":"https://api.github.com/users/wyattmcdonnell/received_events","type":"User","site_admin":false},"body":"Hi Shobi! \r\n\r\nI'm suggesting changes here that will enable `PARC` users to set a random seed that lets them reproduce a given clustering. I also took the liberty of suggesting some minor typographical changes. I've tested this on our servers and on my local machine (OS X 10.14.6) and it runs without issue!\r\n\r\nBest wishes,\r\nWyatt","created_at":"2019-10-11T19:12:08Z","updated_at":"2019-10-11T19:15:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03f7cad5523fcd2a2e3b5f836cc0ad7275cd6151","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ShobiStassen/PARC/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ShobiStassen/PARC/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ShobiStassen/PARC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ShobiStassen/PARC/issues/1/comments","statuses_url":"https://api.github.com/repos/ShobiStassen/PARC/statuses/c91e5afdf79cfdec7185925dff85ac7f5dd918e7","head":{"label":"wyattmcdonnell:patch-1","ref":"patch-1","sha":"c91e5afdf79cfdec7185925dff85ac7f5dd918e7","user":{"login":"wyattmcdonnell","id":18267139,"node_id":"MDQ6VXNlcjE4MjY3MTM5","avatar_url":"https://avatars3.githubusercontent.com/u/18267139?v=4","gravatar_id":"","url":"https://api.github.com/users/wyattmcdonnell","html_url":"https://github.com/wyattmcdonnell","followers_url":"https://api.github.com/users/wyattmcdonnell/followers","following_url":"https://api.github.com/users/wyattmcdonnell/following{/other_user}","gists_url":"https://api.github.com/users/wyattmcdonnell/gists{/gist_id}","starred_url":"https://api.github.com/users/wyattmcdonnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyattmcdonnell/subscriptions","organizations_url":"https://api.github.com/users/wyattmcdonnell/orgs","repos_url":"https://api.github.com/users/wyattmcdonnell/repos","events_url":"https://api.github.com/users/wyattmcdonnell/events{/privacy}","received_events_url":"https://api.github.com/users/wyattmcdonnell/received_events","type":"User","site_admin":false},"repo":{"id":214510347,"node_id":"MDEwOlJlcG9zaXRvcnkyMTQ1MTAzNDc=","name":"PARC","full_name":"wyattmcdonnell/PARC","private":false,"owner":{"login":"wyattmcdonnell","id":18267139,"node_id":"MDQ6VXNlcjE4MjY3MTM5","avatar_url":"https://avatars3.githubusercontent.com/u/18267139?v=4","gravatar_id":"","url":"https://api.github.com/users/wyattmcdonnell","html_url":"https://github.com/wyattmcdonnell","followers_url":"https://api.github.com/users/wyattmcdonnell/followers","following_url":"https://api.github.com/users/wyattmcdonnell/following{/other_user}","gists_url":"https://api.github.com/users/wyattmcdonnell/gists{/gist_id}","starred_url":"https://api.github.com/users/wyattmcdonnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyattmcdonnell/subscriptions","organizations_url":"https://api.github.com/users/wyattmcdonnell/orgs","repos_url":"https://api.github.com/users/wyattmcdonnell/repos","events_url":"https://api.github.com/users/wyattmcdonnell/events{/privacy}","received_events_url":"https://api.github.com/users/wyattmcdonnell/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wyattmcdonnell/PARC","description":null,"fork":true,"url":"https://api.github.com/repos/wyattmcdonnell/PARC","forks_url":"https://api.github.com/repos/wyattmcdonnell/PARC/forks","keys_url":"https://api.github.com/repos/wyattmcdonnell/PARC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wyattmcdonnell/PARC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wyattmcdonnell/PARC/teams","hooks_url":"https://api.github.com/repos/wyattmcdonnell/PARC/hooks","issue_events_url":"https://api.github.com/repos/wyattmcdonnell/PARC/issues/events{/number}","events_url":"https://api.github.com/repos/wyattmcdonnell/PARC/events","assignees_url":"https://api.github.com/repos/wyattmcdonnell/PARC/assignees{/user}","branches_url":"https://api.github.com/repos/wyattmcdonnell/PARC/branches{/branch}","tags_url":"https://api.github.com/repos/wyattmcdonnell/PARC/tags","blobs_url":"https://api.github.com/repos/wyattmcdonnell/PARC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wyattmcdonnell/PARC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wyattmcdonnell/PARC/git/refs{/sha}","trees_url":"https://api.github.com/repos/wyattmcdonnell/PARC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wyattmcdonnell/PARC/statuses/{sha}","languages_url":"https://api.github.com/repos/wyattmcdonnell/PARC/languages","stargazers_url":"https://api.github.com/repos/wyattmcdonnell/PARC/stargazers","contributors_url":"https://api.github.com/repos/wyattmcdonnell/PARC/contributors","subscribers_url":"https://api.github.com/repos/wyattmcdonnell/PARC/subscribers","subscription_url":"https://api.github.com/repos/wyattmcdonnell/PARC/subscription","commits_url":"https://api.github.com/repos/wyattmcdonnell/PARC/commits{/sha}","git_commits_url":"https://api.github.com/repos/wyattmcdonnell/PARC/git/commits{/sha}","comments_url":"https://api.github.com/repos/wyattmcdonnell/PARC/comments{/number}","issue_comment_url":"https://api.github.com/repos/wyattmcdonnell/PARC/issues/comments{/number}","contents_url":"https://api.github.com/repos/wyattmcdonnell/PARC/contents/{+path}","compare_url":"https://api.github.com/repos/wyattmcdonnell/PARC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wyattmcdonnell/PARC/merges","archive_url":"https://api.github.com/repos/wyattmcdonnell/PARC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wyattmcdonnell/PARC/downloads","issues_url":"https://api.github.com/repos/wyattmcdonnell/PARC/issues{/number}","pulls_url":"https://api.github.com/repos/wyattmcdonnell/PARC/pulls{/number}","milestones_url":"https://api.github.com/repos/wyattmcdonnell/PARC/milestones{/number}","notifications_url":"https://api.github.com/repos/wyattmcdonnell/PARC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wyattmcdonnell/PARC/labels{/name}","releases_url":"https://api.github.com/repos/wyattmcdonnell/PARC/releases{/id}","deployments_url":"https://api.github.com/repos/wyattmcdonnell/PARC/deployments","created_at":"2019-10-11T19:03:20Z","updated_at":"2019-10-11T19:03:22Z","pushed_at":"2019-10-11T19:11:21Z","git_url":"git://github.com/wyattmcdonnell/PARC.git","ssh_url":"git@github.com:wyattmcdonnell/PARC.git","clone_url":"https://github.com/wyattmcdonnell/PARC.git","svn_url":"https://github.com/wyattmcdonnell/PARC","homepage":null,"size":3863,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ShobiStassen:master","ref":"master","sha":"946725caca1a60b66e2ad98bb9910948d2f3220b","user":{"login":"ShobiStassen","id":35950152,"node_id":"MDQ6VXNlcjM1OTUwMTUy","avatar_url":"https://avatars0.githubusercontent.com/u/35950152?v=4","gravatar_id":"","url":"https://api.github.com/users/ShobiStassen","html_url":"https://github.com/ShobiStassen","followers_url":"https://api.github.com/users/ShobiStassen/followers","following_url":"https://api.github.com/users/ShobiStassen/following{/other_user}","gists_url":"https://api.github.com/users/ShobiStassen/gists{/gist_id}","starred_url":"https://api.github.com/users/ShobiStassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShobiStassen/subscriptions","organizations_url":"https://api.github.com/users/ShobiStassen/orgs","repos_url":"https://api.github.com/users/ShobiStassen/repos","events_url":"https://api.github.com/users/ShobiStassen/events{/privacy}","received_events_url":"https://api.github.com/users/ShobiStassen/received_events","type":"User","site_admin":false},"repo":{"id":194923693,"node_id":"MDEwOlJlcG9zaXRvcnkxOTQ5MjM2OTM=","name":"PARC","full_name":"ShobiStassen/PARC","private":false,"owner":{"login":"ShobiStassen","id":35950152,"node_id":"MDQ6VXNlcjM1OTUwMTUy","avatar_url":"https://avatars0.githubusercontent.com/u/35950152?v=4","gravatar_id":"","url":"https://api.github.com/users/ShobiStassen","html_url":"https://github.com/ShobiStassen","followers_url":"https://api.github.com/users/ShobiStassen/followers","following_url":"https://api.github.com/users/ShobiStassen/following{/other_user}","gists_url":"https://api.github.com/users/ShobiStassen/gists{/gist_id}","starred_url":"https://api.github.com/users/ShobiStassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShobiStassen/subscriptions","organizations_url":"https://api.github.com/users/ShobiStassen/orgs","repos_url":"https://api.github.com/users/ShobiStassen/repos","events_url":"https://api.github.com/users/ShobiStassen/events{/privacy}","received_events_url":"https://api.github.com/users/ShobiStassen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ShobiStassen/PARC","description":null,"fork":false,"url":"https://api.github.com/repos/ShobiStassen/PARC","forks_url":"https://api.github.com/repos/ShobiStassen/PARC/forks","keys_url":"https://api.github.com/repos/ShobiStassen/PARC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ShobiStassen/PARC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ShobiStassen/PARC/teams","hooks_url":"https://api.github.com/repos/ShobiStassen/PARC/hooks","issue_events_url":"https://api.github.com/repos/ShobiStassen/PARC/issues/events{/number}","events_url":"https://api.github.com/repos/ShobiStassen/PARC/events","assignees_url":"https://api.github.com/repos/ShobiStassen/PARC/assignees{/user}","branches_url":"https://api.github.com/repos/ShobiStassen/PARC/branches{/branch}","tags_url":"https://api.github.com/repos/ShobiStassen/PARC/tags","blobs_url":"https://api.github.com/repos/ShobiStassen/PARC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ShobiStassen/PARC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ShobiStassen/PARC/git/refs{/sha}","trees_url":"https://api.github.com/repos/ShobiStassen/PARC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ShobiStassen/PARC/statuses/{sha}","languages_url":"https://api.github.com/repos/ShobiStassen/PARC/languages","stargazers_url":"https://api.github.com/repos/ShobiStassen/PARC/stargazers","contributors_url":"https://api.github.com/repos/ShobiStassen/PARC/contributors","subscribers_url":"https://api.github.com/repos/ShobiStassen/PARC/subscribers","subscription_url":"https://api.github.com/repos/ShobiStassen/PARC/subscription","commits_url":"https://api.github.com/repos/ShobiStassen/PARC/commits{/sha}","git_commits_url":"https://api.github.com/repos/ShobiStassen/PARC/git/commits{/sha}","comments_url":"https://api.github.com/repos/ShobiStassen/PARC/comments{/number}","issue_comment_url":"https://api.github.com/repos/ShobiStassen/PARC/issues/comments{/number}","contents_url":"https://api.github.com/repos/ShobiStassen/PARC/contents/{+path}","compare_url":"https://api.github.com/repos/ShobiStassen/PARC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ShobiStassen/PARC/merges","archive_url":"https://api.github.com/repos/ShobiStassen/PARC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ShobiStassen/PARC/downloads","issues_url":"https://api.github.com/repos/ShobiStassen/PARC/issues{/number}","pulls_url":"https://api.github.com/repos/ShobiStassen/PARC/pulls{/number}","milestones_url":"https://api.github.com/repos/ShobiStassen/PARC/milestones{/number}","notifications_url":"https://api.github.com/repos/ShobiStassen/PARC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ShobiStassen/PARC/labels{/name}","releases_url":"https://api.github.com/repos/ShobiStassen/PARC/releases{/id}","deployments_url":"https://api.github.com/repos/ShobiStassen/PARC/deployments","created_at":"2019-07-02T19:33:24Z","updated_at":"2019-09-26T04:03:36Z","pushed_at":"2019-10-11T19:12:09Z","git_url":"git://github.com/ShobiStassen/PARC.git","ssh_url":"git@github.com:ShobiStassen/PARC.git","clone_url":"https://github.com/ShobiStassen/PARC.git","svn_url":"https://github.com/ShobiStassen/PARC","homepage":null,"size":3863,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ShobiStassen/PARC/pulls/1"},"html":{"href":"https://github.com/ShobiStassen/PARC/pull/1"},"issue":{"href":"https://api.github.com/repos/ShobiStassen/PARC/issues/1"},"comments":{"href":"https://api.github.com/repos/ShobiStassen/PARC/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ShobiStassen/PARC/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ShobiStassen/PARC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ShobiStassen/PARC/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ShobiStassen/PARC/statuses/c91e5afdf79cfdec7185925dff85ac7f5dd918e7"}},"author_association":"NONE"}}
{"actor":{"display_login":"wyattmcdonnell"}}