{"action":"created","comment":{"url":"https://api.github.com/repos/bgruening/galaxytools/pulls/comments/169877183","pull_request_review_id":98472620,"id":169877183,"diff_hunk":"@@ -4,59 +4,77 @@\n import re\n from sklearn import metrics\n from shutil import make_archive\n+import sys\n+import fnmatch, os\n \n def sh(script):\n     system(\"bash -c '%s'\" % script)\n \n-dataNames = \"FASTA/data.names\"\n+fasta_dir = sys.argv[1]\n+results_dir = sys.argv[2]\n+dataNames = fasta_dir+\"/data.names\"\n \n listOfClusters = []\n listOfHeaders = []\n headersNames = set()\n-cluster_seqs_stats_path = \"RESULTS/*.cluster.all\"\n-cluster_seqs_stats_files = glob.glob(cluster_seqs_stats_path)\n+idsNames = set()\n \n+\n+names = os.listdir(results_dir)\n+cluster_seqs_stats_files = fnmatch.filter(names, '*.cluster.all')\n with open(dataNames, \"r\") as names:\n     for line2 in names:\n         splits2 = line2.split()\n         fullHeader = ''\n         if len(splits2) >= 6:\n             fullHeader = splits2[5]\n             headersNames.add(fullHeader)\n+            fullID = splits2[3]\n+            idsNames.add(fullID)\n \n blackList = []\n numberOfClusters = 0\n for singleFile in sorted(cluster_seqs_stats_files):\n+    singleFile = results_dir+'/'+singleFile","path":"tools/GraphClust/CollectResults/evaluation.py","position":null,"original_position":38,"commit_id":"d01e49f6345dde510f3def69b94bf8f38aa28f23","original_commit_id":"b72419e40eee9925756529c43f2d979ceb006e43","user":{"login":"mmiladi","id":6370737,"avatar_url":"https://avatars2.githubusercontent.com/u/6370737?v=4","gravatar_id":"","url":"https://api.github.com/users/mmiladi","html_url":"https://github.com/mmiladi","followers_url":"https://api.github.com/users/mmiladi/followers","following_url":"https://api.github.com/users/mmiladi/following{/other_user}","gists_url":"https://api.github.com/users/mmiladi/gists{/gist_id}","starred_url":"https://api.github.com/users/mmiladi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmiladi/subscriptions","organizations_url":"https://api.github.com/users/mmiladi/orgs","repos_url":"https://api.github.com/users/mmiladi/repos","events_url":"https://api.github.com/users/mmiladi/events{/privacy}","received_events_url":"https://api.github.com/users/mmiladi/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2018-02-22T07:56:06Z","updated_at":"2018-02-22T07:56:06Z","html_url":"https://github.com/bgruening/galaxytools/pull/688#discussion_r169877183","pull_request_url":"https://api.github.com/repos/bgruening/galaxytools/pulls/688","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/comments/169877183"},"html":{"href":"https://github.com/bgruening/galaxytools/pull/688#discussion_r169877183"},"pull_request":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/688"}},"in_reply_to_id":169862389},"pull_request":{"url":"https://api.github.com/repos/bgruening/galaxytools/pulls/688","id":170652242,"html_url":"https://github.com/bgruening/galaxytools/pull/688","diff_url":"https://github.com/bgruening/galaxytools/pull/688.diff","patch_url":"https://github.com/bgruening/galaxytools/pull/688.patch","issue_url":"https://api.github.com/repos/bgruening/galaxytools/issues/688","number":688,"state":"open","locked":false,"title":"evaluation custom path args","user":{"login":"mmiladi","id":6370737,"avatar_url":"https://avatars2.githubusercontent.com/u/6370737?v=4","gravatar_id":"","url":"https://api.github.com/users/mmiladi","html_url":"https://github.com/mmiladi","followers_url":"https://api.github.com/users/mmiladi/followers","following_url":"https://api.github.com/users/mmiladi/following{/other_user}","gists_url":"https://api.github.com/users/mmiladi/gists{/gist_id}","starred_url":"https://api.github.com/users/mmiladi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmiladi/subscriptions","organizations_url":"https://api.github.com/users/mmiladi/orgs","repos_url":"https://api.github.com/users/mmiladi/repos","events_url":"https://api.github.com/users/mmiladi/events{/privacy}","received_events_url":"https://api.github.com/users/mmiladi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-22T04:05:44Z","updated_at":"2018-02-22T07:56:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e0798e58561b5c6d1f2d76dff4d5067f2d6c0e9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bgruening/galaxytools/pulls/688/commits","review_comments_url":"https://api.github.com/repos/bgruening/galaxytools/pulls/688/comments","review_comment_url":"https://api.github.com/repos/bgruening/galaxytools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bgruening/galaxytools/issues/688/comments","statuses_url":"https://api.github.com/repos/bgruening/galaxytools/statuses/d01e49f6345dde510f3def69b94bf8f38aa28f23","head":{"label":"mmiladi:graphclust-collect","ref":"graphclust-collect","sha":"d01e49f6345dde510f3def69b94bf8f38aa28f23","user":{"login":"mmiladi","id":6370737,"avatar_url":"https://avatars2.githubusercontent.com/u/6370737?v=4","gravatar_id":"","url":"https://api.github.com/users/mmiladi","html_url":"https://github.com/mmiladi","followers_url":"https://api.github.com/users/mmiladi/followers","following_url":"https://api.github.com/users/mmiladi/following{/other_user}","gists_url":"https://api.github.com/users/mmiladi/gists{/gist_id}","starred_url":"https://api.github.com/users/mmiladi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmiladi/subscriptions","organizations_url":"https://api.github.com/users/mmiladi/orgs","repos_url":"https://api.github.com/users/mmiladi/repos","events_url":"https://api.github.com/users/mmiladi/events{/privacy}","received_events_url":"https://api.github.com/users/mmiladi/received_events","type":"User","site_admin":false},"repo":{"id":77136127,"name":"galaxytools","full_name":"mmiladi/galaxytools","owner":{"login":"mmiladi","id":6370737,"avatar_url":"https://avatars2.githubusercontent.com/u/6370737?v=4","gravatar_id":"","url":"https://api.github.com/users/mmiladi","html_url":"https://github.com/mmiladi","followers_url":"https://api.github.com/users/mmiladi/followers","following_url":"https://api.github.com/users/mmiladi/following{/other_user}","gists_url":"https://api.github.com/users/mmiladi/gists{/gist_id}","starred_url":"https://api.github.com/users/mmiladi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmiladi/subscriptions","organizations_url":"https://api.github.com/users/mmiladi/orgs","repos_url":"https://api.github.com/users/mmiladi/repos","events_url":"https://api.github.com/users/mmiladi/events{/privacy}","received_events_url":"https://api.github.com/users/mmiladi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmiladi/galaxytools","description":":microscope::books: Galaxy Tool wrappers","fork":true,"url":"https://api.github.com/repos/mmiladi/galaxytools","forks_url":"https://api.github.com/repos/mmiladi/galaxytools/forks","keys_url":"https://api.github.com/repos/mmiladi/galaxytools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmiladi/galaxytools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmiladi/galaxytools/teams","hooks_url":"https://api.github.com/repos/mmiladi/galaxytools/hooks","issue_events_url":"https://api.github.com/repos/mmiladi/galaxytools/issues/events{/number}","events_url":"https://api.github.com/repos/mmiladi/galaxytools/events","assignees_url":"https://api.github.com/repos/mmiladi/galaxytools/assignees{/user}","branches_url":"https://api.github.com/repos/mmiladi/galaxytools/branches{/branch}","tags_url":"https://api.github.com/repos/mmiladi/galaxytools/tags","blobs_url":"https://api.github.com/repos/mmiladi/galaxytools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmiladi/galaxytools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmiladi/galaxytools/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmiladi/galaxytools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmiladi/galaxytools/statuses/{sha}","languages_url":"https://api.github.com/repos/mmiladi/galaxytools/languages","stargazers_url":"https://api.github.com/repos/mmiladi/galaxytools/stargazers","contributors_url":"https://api.github.com/repos/mmiladi/galaxytools/contributors","subscribers_url":"https://api.github.com/repos/mmiladi/galaxytools/subscribers","subscription_url":"https://api.github.com/repos/mmiladi/galaxytools/subscription","commits_url":"https://api.github.com/repos/mmiladi/galaxytools/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmiladi/galaxytools/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmiladi/galaxytools/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmiladi/galaxytools/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmiladi/galaxytools/contents/{+path}","compare_url":"https://api.github.com/repos/mmiladi/galaxytools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmiladi/galaxytools/merges","archive_url":"https://api.github.com/repos/mmiladi/galaxytools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmiladi/galaxytools/downloads","issues_url":"https://api.github.com/repos/mmiladi/galaxytools/issues{/number}","pulls_url":"https://api.github.com/repos/mmiladi/galaxytools/pulls{/number}","milestones_url":"https://api.github.com/repos/mmiladi/galaxytools/milestones{/number}","notifications_url":"https://api.github.com/repos/mmiladi/galaxytools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmiladi/galaxytools/labels{/name}","releases_url":"https://api.github.com/repos/mmiladi/galaxytools/releases{/id}","deployments_url":"https://api.github.com/repos/mmiladi/galaxytools/deployments","created_at":"2016-12-22T10:36:24Z","updated_at":"2016-12-22T10:36:29Z","pushed_at":"2018-02-22T07:41:10Z","git_url":"git://github.com/mmiladi/galaxytools.git","ssh_url":"git@github.com:mmiladi/galaxytools.git","clone_url":"https://github.com/mmiladi/galaxytools.git","svn_url":"https://github.com/mmiladi/galaxytools","homepage":"","size":301597,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"bgruening:master","ref":"master","sha":"f48156f03164bde1f1be4826b2f0a1f16dc2cd2f","user":{"login":"bgruening","id":469983,"avatar_url":"https://avatars2.githubusercontent.com/u/469983?v=4","gravatar_id":"","url":"https://api.github.com/users/bgruening","html_url":"https://github.com/bgruening","followers_url":"https://api.github.com/users/bgruening/followers","following_url":"https://api.github.com/users/bgruening/following{/other_user}","gists_url":"https://api.github.com/users/bgruening/gists{/gist_id}","starred_url":"https://api.github.com/users/bgruening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgruening/subscriptions","organizations_url":"https://api.github.com/users/bgruening/orgs","repos_url":"https://api.github.com/users/bgruening/repos","events_url":"https://api.github.com/users/bgruening/events{/privacy}","received_events_url":"https://api.github.com/users/bgruening/received_events","type":"User","site_admin":false},"repo":{"id":6942323,"name":"galaxytools","full_name":"bgruening/galaxytools","owner":{"login":"bgruening","id":469983,"avatar_url":"https://avatars2.githubusercontent.com/u/469983?v=4","gravatar_id":"","url":"https://api.github.com/users/bgruening","html_url":"https://github.com/bgruening","followers_url":"https://api.github.com/users/bgruening/followers","following_url":"https://api.github.com/users/bgruening/following{/other_user}","gists_url":"https://api.github.com/users/bgruening/gists{/gist_id}","starred_url":"https://api.github.com/users/bgruening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgruening/subscriptions","organizations_url":"https://api.github.com/users/bgruening/orgs","repos_url":"https://api.github.com/users/bgruening/repos","events_url":"https://api.github.com/users/bgruening/events{/privacy}","received_events_url":"https://api.github.com/users/bgruening/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bgruening/galaxytools","description":":microscope::books: Galaxy Tool wrappers","fork":false,"url":"https://api.github.com/repos/bgruening/galaxytools","forks_url":"https://api.github.com/repos/bgruening/galaxytools/forks","keys_url":"https://api.github.com/repos/bgruening/galaxytools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bgruening/galaxytools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bgruening/galaxytools/teams","hooks_url":"https://api.github.com/repos/bgruening/galaxytools/hooks","issue_events_url":"https://api.github.com/repos/bgruening/galaxytools/issues/events{/number}","events_url":"https://api.github.com/repos/bgruening/galaxytools/events","assignees_url":"https://api.github.com/repos/bgruening/galaxytools/assignees{/user}","branches_url":"https://api.github.com/repos/bgruening/galaxytools/branches{/branch}","tags_url":"https://api.github.com/repos/bgruening/galaxytools/tags","blobs_url":"https://api.github.com/repos/bgruening/galaxytools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bgruening/galaxytools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bgruening/galaxytools/git/refs{/sha}","trees_url":"https://api.github.com/repos/bgruening/galaxytools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bgruening/galaxytools/statuses/{sha}","languages_url":"https://api.github.com/repos/bgruening/galaxytools/languages","stargazers_url":"https://api.github.com/repos/bgruening/galaxytools/stargazers","contributors_url":"https://api.github.com/repos/bgruening/galaxytools/contributors","subscribers_url":"https://api.github.com/repos/bgruening/galaxytools/subscribers","subscription_url":"https://api.github.com/repos/bgruening/galaxytools/subscription","commits_url":"https://api.github.com/repos/bgruening/galaxytools/commits{/sha}","git_commits_url":"https://api.github.com/repos/bgruening/galaxytools/git/commits{/sha}","comments_url":"https://api.github.com/repos/bgruening/galaxytools/comments{/number}","issue_comment_url":"https://api.github.com/repos/bgruening/galaxytools/issues/comments{/number}","contents_url":"https://api.github.com/repos/bgruening/galaxytools/contents/{+path}","compare_url":"https://api.github.com/repos/bgruening/galaxytools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bgruening/galaxytools/merges","archive_url":"https://api.github.com/repos/bgruening/galaxytools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bgruening/galaxytools/downloads","issues_url":"https://api.github.com/repos/bgruening/galaxytools/issues{/number}","pulls_url":"https://api.github.com/repos/bgruening/galaxytools/pulls{/number}","milestones_url":"https://api.github.com/repos/bgruening/galaxytools/milestones{/number}","notifications_url":"https://api.github.com/repos/bgruening/galaxytools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bgruening/galaxytools/labels{/name}","releases_url":"https://api.github.com/repos/bgruening/galaxytools/releases{/id}","deployments_url":"https://api.github.com/repos/bgruening/galaxytools/deployments","created_at":"2012-11-30T16:48:44Z","updated_at":"2018-01-28T09:52:28Z","pushed_at":"2018-02-22T07:41:11Z","git_url":"git://github.com/bgruening/galaxytools.git","ssh_url":"git@github.com:bgruening/galaxytools.git","clone_url":"https://github.com/bgruening/galaxytools.git","svn_url":"https://github.com/bgruening/galaxytools","homepage":"","size":309195,"stargazers_count":56,"watchers_count":56,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":99,"mirror_url":null,"archived":false,"open_issues_count":90,"license":null,"forks":99,"open_issues":90,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/688"},"html":{"href":"https://github.com/bgruening/galaxytools/pull/688"},"issue":{"href":"https://api.github.com/repos/bgruening/galaxytools/issues/688"},"comments":{"href":"https://api.github.com/repos/bgruening/galaxytools/issues/688/comments"},"review_comments":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/688/comments"},"review_comment":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bgruening/galaxytools/pulls/688/commits"},"statuses":{"href":"https://api.github.com/repos/bgruening/galaxytools/statuses/d01e49f6345dde510f3def69b94bf8f38aa28f23"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mmiladi"}}