{"action":"created","comment":{"url":"https://api.github.com/repos/SciLifeLab/TACA/pulls/comments/46255156","id":46255156,"diff_hunk":"@@ -116,17 +130,18 @@ def get_status(run_dir):\n \n     return status\n \n-\n-\n-\n+#Returns project, FC, lane & sample (sample-run) status for a given folder\n def get_ss_projects(run_dir):\n-    pattern=re.compile(\"(P[0-9]{3,5})_[0-9]{3,5}\")\n-    project_ids=set()\n+    proj_tree = Tree()\n+    proj_pattern=re.compile(\"(P[0-9]{3,5})_[0-9]{3,5}\")","path":"taca/utils/bioinfo_tab.py","position":109,"original_position":109,"commit_id":"b92a4a50ac0c9d5a9a05497191c234859eba29d7","original_commit_id":"b92a4a50ac0c9d5a9a05497191c234859eba29d7","user":{"login":"sylvinite","id":5452272,"avatar_url":"https://avatars.githubusercontent.com/u/5452272?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvinite","html_url":"https://github.com/sylvinite","followers_url":"https://api.github.com/users/sylvinite/followers","following_url":"https://api.github.com/users/sylvinite/following{/other_user}","gists_url":"https://api.github.com/users/sylvinite/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvinite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvinite/subscriptions","organizations_url":"https://api.github.com/users/sylvinite/orgs","repos_url":"https://api.github.com/users/sylvinite/repos","events_url":"https://api.github.com/users/sylvinite/events{/privacy}","received_events_url":"https://api.github.com/users/sylvinite/received_events","type":"User","site_admin":false},"body":"This regex is not written by me. Probably kept that way to avoid some parsing problems. If you really want I can change it.","created_at":"2015-12-01T09:19:53Z","updated_at":"2015-12-01T09:19:53Z","html_url":"https://github.com/SciLifeLab/TACA/pull/149#discussion_r46255156","pull_request_url":"https://api.github.com/repos/SciLifeLab/TACA/pulls/149","_links":{"self":{"href":"https://api.github.com/repos/SciLifeLab/TACA/pulls/comments/46255156"},"html":{"href":"https://github.com/SciLifeLab/TACA/pull/149#discussion_r46255156"},"pull_request":{"href":"https://api.github.com/repos/SciLifeLab/TACA/pulls/149"}}},"pull_request":{"url":"https://api.github.com/repos/SciLifeLab/TACA/pulls/149","id":52229500,"html_url":"https://github.com/SciLifeLab/TACA/pull/149","diff_url":"https://github.com/SciLifeLab/TACA/pull/149.diff","patch_url":"https://github.com/SciLifeLab/TACA/pull/149.patch","issue_url":"https://api.github.com/repos/SciLifeLab/TACA/issues/149","number":149,"state":"open","locked":false,"title":"Creates records on sample instead of project level","user":{"login":"sylvinite","id":5452272,"avatar_url":"https://avatars.githubusercontent.com/u/5452272?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvinite","html_url":"https://github.com/sylvinite","followers_url":"https://api.github.com/users/sylvinite/followers","following_url":"https://api.github.com/users/sylvinite/following{/other_user}","gists_url":"https://api.github.com/users/sylvinite/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvinite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvinite/subscriptions","organizations_url":"https://api.github.com/users/sylvinite/orgs","repos_url":"https://api.github.com/users/sylvinite/repos","events_url":"https://api.github.com/users/sylvinite/events{/privacy}","received_events_url":"https://api.github.com/users/sylvinite/received_events","type":"User","site_admin":false},"body":"get_ss_project has been changed to collect proj,fc,lane and sample name instead of just proj name.\r\nOutput to couchdb is a bit crude (one entry per sample) but could easily be aggregated into less records if so needed.","created_at":"2015-12-01T08:38:50Z","updated_at":"2015-12-01T09:19:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4039262201fb81f4fb08f087ebaf37759128652c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SciLifeLab/TACA/pulls/149/commits","review_comments_url":"https://api.github.com/repos/SciLifeLab/TACA/pulls/149/comments","review_comment_url":"https://api.github.com/repos/SciLifeLab/TACA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SciLifeLab/TACA/issues/149/comments","statuses_url":"https://api.github.com/repos/SciLifeLab/TACA/statuses/b92a4a50ac0c9d5a9a05497191c234859eba29d7","head":{"label":"sylvinite:master","ref":"master","sha":"b92a4a50ac0c9d5a9a05497191c234859eba29d7","user":{"login":"sylvinite","id":5452272,"avatar_url":"https://avatars.githubusercontent.com/u/5452272?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvinite","html_url":"https://github.com/sylvinite","followers_url":"https://api.github.com/users/sylvinite/followers","following_url":"https://api.github.com/users/sylvinite/following{/other_user}","gists_url":"https://api.github.com/users/sylvinite/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvinite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvinite/subscriptions","organizations_url":"https://api.github.com/users/sylvinite/orgs","repos_url":"https://api.github.com/users/sylvinite/repos","events_url":"https://api.github.com/users/sylvinite/events{/privacy}","received_events_url":"https://api.github.com/users/sylvinite/received_events","type":"User","site_admin":false},"repo":{"id":46495139,"name":"TACA","full_name":"sylvinite/TACA","owner":{"login":"sylvinite","id":5452272,"avatar_url":"https://avatars.githubusercontent.com/u/5452272?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvinite","html_url":"https://github.com/sylvinite","followers_url":"https://api.github.com/users/sylvinite/followers","following_url":"https://api.github.com/users/sylvinite/following{/other_user}","gists_url":"https://api.github.com/users/sylvinite/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvinite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvinite/subscriptions","organizations_url":"https://api.github.com/users/sylvinite/orgs","repos_url":"https://api.github.com/users/sylvinite/repos","events_url":"https://api.github.com/users/sylvinite/events{/privacy}","received_events_url":"https://api.github.com/users/sylvinite/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sylvinite/TACA","description":"Tool for the Automation of Cleanup and Analyses","fork":true,"url":"https://api.github.com/repos/sylvinite/TACA","forks_url":"https://api.github.com/repos/sylvinite/TACA/forks","keys_url":"https://api.github.com/repos/sylvinite/TACA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sylvinite/TACA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sylvinite/TACA/teams","hooks_url":"https://api.github.com/repos/sylvinite/TACA/hooks","issue_events_url":"https://api.github.com/repos/sylvinite/TACA/issues/events{/number}","events_url":"https://api.github.com/repos/sylvinite/TACA/events","assignees_url":"https://api.github.com/repos/sylvinite/TACA/assignees{/user}","branches_url":"https://api.github.com/repos/sylvinite/TACA/branches{/branch}","tags_url":"https://api.github.com/repos/sylvinite/TACA/tags","blobs_url":"https://api.github.com/repos/sylvinite/TACA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sylvinite/TACA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sylvinite/TACA/git/refs{/sha}","trees_url":"https://api.github.com/repos/sylvinite/TACA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sylvinite/TACA/statuses/{sha}","languages_url":"https://api.github.com/repos/sylvinite/TACA/languages","stargazers_url":"https://api.github.com/repos/sylvinite/TACA/stargazers","contributors_url":"https://api.github.com/repos/sylvinite/TACA/contributors","subscribers_url":"https://api.github.com/repos/sylvinite/TACA/subscribers","subscription_url":"https://api.github.com/repos/sylvinite/TACA/subscription","commits_url":"https://api.github.com/repos/sylvinite/TACA/commits{/sha}","git_commits_url":"https://api.github.com/repos/sylvinite/TACA/git/commits{/sha}","comments_url":"https://api.github.com/repos/sylvinite/TACA/comments{/number}","issue_comment_url":"https://api.github.com/repos/sylvinite/TACA/issues/comments{/number}","contents_url":"https://api.github.com/repos/sylvinite/TACA/contents/{+path}","compare_url":"https://api.github.com/repos/sylvinite/TACA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sylvinite/TACA/merges","archive_url":"https://api.github.com/repos/sylvinite/TACA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sylvinite/TACA/downloads","issues_url":"https://api.github.com/repos/sylvinite/TACA/issues{/number}","pulls_url":"https://api.github.com/repos/sylvinite/TACA/pulls{/number}","milestones_url":"https://api.github.com/repos/sylvinite/TACA/milestones{/number}","notifications_url":"https://api.github.com/repos/sylvinite/TACA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sylvinite/TACA/labels{/name}","releases_url":"https://api.github.com/repos/sylvinite/TACA/releases{/id}","created_at":"2015-11-19T13:50:40Z","updated_at":"2015-11-19T13:50:41Z","pushed_at":"2015-12-01T08:34:30Z","git_url":"git://github.com/sylvinite/TACA.git","ssh_url":"git@github.com:sylvinite/TACA.git","clone_url":"https://github.com/sylvinite/TACA.git","svn_url":"https://github.com/sylvinite/TACA","homepage":"","size":876,"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":"SciLifeLab:master","ref":"master","sha":"27097f4a3371135d55a2bfc2a663c37f5fa9154a","user":{"login":"SciLifeLab","id":713611,"avatar_url":"https://avatars.githubusercontent.com/u/713611?v=3","gravatar_id":"","url":"https://api.github.com/users/SciLifeLab","html_url":"https://github.com/SciLifeLab","followers_url":"https://api.github.com/users/SciLifeLab/followers","following_url":"https://api.github.com/users/SciLifeLab/following{/other_user}","gists_url":"https://api.github.com/users/SciLifeLab/gists{/gist_id}","starred_url":"https://api.github.com/users/SciLifeLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciLifeLab/subscriptions","organizations_url":"https://api.github.com/users/SciLifeLab/orgs","repos_url":"https://api.github.com/users/SciLifeLab/repos","events_url":"https://api.github.com/users/SciLifeLab/events{/privacy}","received_events_url":"https://api.github.com/users/SciLifeLab/received_events","type":"Organization","site_admin":false},"repo":{"id":25529822,"name":"TACA","full_name":"SciLifeLab/TACA","owner":{"login":"SciLifeLab","id":713611,"avatar_url":"https://avatars.githubusercontent.com/u/713611?v=3","gravatar_id":"","url":"https://api.github.com/users/SciLifeLab","html_url":"https://github.com/SciLifeLab","followers_url":"https://api.github.com/users/SciLifeLab/followers","following_url":"https://api.github.com/users/SciLifeLab/following{/other_user}","gists_url":"https://api.github.com/users/SciLifeLab/gists{/gist_id}","starred_url":"https://api.github.com/users/SciLifeLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciLifeLab/subscriptions","organizations_url":"https://api.github.com/users/SciLifeLab/orgs","repos_url":"https://api.github.com/users/SciLifeLab/repos","events_url":"https://api.github.com/users/SciLifeLab/events{/privacy}","received_events_url":"https://api.github.com/users/SciLifeLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SciLifeLab/TACA","description":"Tool for the Automation of Cleanup and Analyses","fork":true,"url":"https://api.github.com/repos/SciLifeLab/TACA","forks_url":"https://api.github.com/repos/SciLifeLab/TACA/forks","keys_url":"https://api.github.com/repos/SciLifeLab/TACA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SciLifeLab/TACA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SciLifeLab/TACA/teams","hooks_url":"https://api.github.com/repos/SciLifeLab/TACA/hooks","issue_events_url":"https://api.github.com/repos/SciLifeLab/TACA/issues/events{/number}","events_url":"https://api.github.com/repos/SciLifeLab/TACA/events","assignees_url":"https://api.github.com/repos/SciLifeLab/TACA/assignees{/user}","branches_url":"https://api.github.com/repos/SciLifeLab/TACA/branches{/branch}","tags_url":"https://api.github.com/repos/SciLifeLab/TACA/tags","blobs_url":"https://api.github.com/repos/SciLifeLab/TACA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SciLifeLab/TACA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SciLifeLab/TACA/git/refs{/sha}","trees_url":"https://api.github.com/repos/SciLifeLab/TACA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SciLifeLab/TACA/statuses/{sha}","languages_url":"https://api.github.com/repos/SciLifeLab/TACA/languages","stargazers_url":"https://api.github.com/repos/SciLifeLab/TACA/stargazers","contributors_url":"https://api.github.com/repos/SciLifeLab/TACA/contributors","subscribers_url":"https://api.github.com/repos/SciLifeLab/TACA/subscribers","subscription_url":"https://api.github.com/repos/SciLifeLab/TACA/subscription","commits_url":"https://api.github.com/repos/SciLifeLab/TACA/commits{/sha}","git_commits_url":"https://api.github.com/repos/SciLifeLab/TACA/git/commits{/sha}","comments_url":"https://api.github.com/repos/SciLifeLab/TACA/comments{/number}","issue_comment_url":"https://api.github.com/repos/SciLifeLab/TACA/issues/comments{/number}","contents_url":"https://api.github.com/repos/SciLifeLab/TACA/contents/{+path}","compare_url":"https://api.github.com/repos/SciLifeLab/TACA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SciLifeLab/TACA/merges","archive_url":"https://api.github.com/repos/SciLifeLab/TACA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SciLifeLab/TACA/downloads","issues_url":"https://api.github.com/repos/SciLifeLab/TACA/issues{/number}","pulls_url":"https://api.github.com/repos/SciLifeLab/TACA/pulls{/number}","milestones_url":"https://api.github.com/repos/SciLifeLab/TACA/milestones{/number}","notifications_url":"https://api.github.com/repos/SciLifeLab/TACA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SciLifeLab/TACA/labels{/name}","releases_url":"https://api.github.com/repos/SciLifeLab/TACA/releases{/id}","created_at":"2014-10-21T15:23:34Z","updated_at":"2015-09-08T12:17:32Z","pushed_at":"2015-12-01T08:38:50Z","git_url":"git://github.com/SciLifeLab/TACA.git","ssh_url":"git@github.com:SciLifeLab/TACA.git","clone_url":"https://github.com/SciLifeLab/TACA.git","svn_url":"https://github.com/SciLifeLab/TACA","homepage":"","size":893,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":12,"forks":8,"open_issues":12,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SciLifeLab/TACA/pulls/149"},"html":{"href":"https://github.com/SciLifeLab/TACA/pull/149"},"issue":{"href":"https://api.github.com/repos/SciLifeLab/TACA/issues/149"},"comments":{"href":"https://api.github.com/repos/SciLifeLab/TACA/issues/149/comments"},"review_comments":{"href":"https://api.github.com/repos/SciLifeLab/TACA/pulls/149/comments"},"review_comment":{"href":"https://api.github.com/repos/SciLifeLab/TACA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SciLifeLab/TACA/pulls/149/commits"},"statuses":{"href":"https://api.github.com/repos/SciLifeLab/TACA/statuses/b92a4a50ac0c9d5a9a05497191c234859eba29d7"}}}}