{"action":"created","comment":{"url":"https://api.github.com/repos/biocore/micronota/pulls/comments/57477466","id":57477466,"diff_hunk":"@@ -230,20 +231,22 @@ def _annotate_fp(self, fp, aligner='blastp', evalue=0.001, cpus=1,\n             elif outfmt == 'sam':\n                 res = res.append(\n                     self._filter_id_cov(self.parse_sam(out_fp)))\n-            found.extend(res.index)\n             # save to a tmp file the seqs that do not hit current database\n             new_fp = join(self.tmp_dir, '%s.fa' % out_prefix)\n+            num_hits = 0\n             with open(new_fp, 'w') as f:\n                 for seq in read(fp, format='fasta'):\n                     if seq.metadata['id'] not in found:\n                         seq.write(f, format='fasta')\n                         seqs.append(seq)\n+                        num_hits += 1\n+            logger.info('Number of diamond hits: %d' % num_hits)\n+            found.extend(res.index)","path":"micronota/bfillings/diamond.py","position":34,"original_position":34,"commit_id":"b08e79629191980c779ad85c084d7426f68d52a2","original_commit_id":"b08e79629191980c779ad85c084d7426f68d52a2","user":{"login":"mortonjt","id":4184797,"avatar_url":"https://avatars.githubusercontent.com/u/4184797?v=3","gravatar_id":"","url":"https://api.github.com/users/mortonjt","html_url":"https://github.com/mortonjt","followers_url":"https://api.github.com/users/mortonjt/followers","following_url":"https://api.github.com/users/mortonjt/following{/other_user}","gists_url":"https://api.github.com/users/mortonjt/gists{/gist_id}","starred_url":"https://api.github.com/users/mortonjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortonjt/subscriptions","organizations_url":"https://api.github.com/users/mortonjt/orgs","repos_url":"https://api.github.com/users/mortonjt/repos","events_url":"https://api.github.com/users/mortonjt/events{/privacy}","received_events_url":"https://api.github.com/users/mortonjt/received_events","type":"User","site_admin":false},"body":":L That was dumb.","created_at":"2016-03-25T18:56:51Z","updated_at":"2016-03-25T18:56:51Z","html_url":"https://github.com/biocore/micronota/pull/71#discussion_r57477466","pull_request_url":"https://api.github.com/repos/biocore/micronota/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/biocore/micronota/pulls/comments/57477466"},"html":{"href":"https://github.com/biocore/micronota/pull/71#discussion_r57477466"},"pull_request":{"href":"https://api.github.com/repos/biocore/micronota/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/biocore/micronota/pulls/71","id":64111171,"html_url":"https://github.com/biocore/micronota/pull/71","diff_url":"https://github.com/biocore/micronota/pull/71.diff","patch_url":"https://github.com/biocore/micronota/pull/71.patch","issue_url":"https://api.github.com/repos/biocore/micronota/issues/71","number":71,"state":"open","locked":false,"title":"Cache fix","user":{"login":"mortonjt","id":4184797,"avatar_url":"https://avatars.githubusercontent.com/u/4184797?v=3","gravatar_id":"","url":"https://api.github.com/users/mortonjt","html_url":"https://github.com/mortonjt","followers_url":"https://api.github.com/users/mortonjt/followers","following_url":"https://api.github.com/users/mortonjt/following{/other_user}","gists_url":"https://api.github.com/users/mortonjt/gists{/gist_id}","starred_url":"https://api.github.com/users/mortonjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortonjt/subscriptions","organizations_url":"https://api.github.com/users/mortonjt/orgs","repos_url":"https://api.github.com/users/mortonjt/repos","events_url":"https://api.github.com/users/mortonjt/events{/privacy}","received_events_url":"https://api.github.com/users/mortonjt/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-24T22:55:55Z","updated_at":"2016-03-25T18:56:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3baa97c5bca10169c169df7b5c63d3219dfc9b9c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/biocore/micronota/pulls/71/commits","review_comments_url":"https://api.github.com/repos/biocore/micronota/pulls/71/comments","review_comment_url":"https://api.github.com/repos/biocore/micronota/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biocore/micronota/issues/71/comments","statuses_url":"https://api.github.com/repos/biocore/micronota/statuses/b08e79629191980c779ad85c084d7426f68d52a2","head":{"label":"mortonjt:cache_fix","ref":"cache_fix","sha":"b08e79629191980c779ad85c084d7426f68d52a2","user":{"login":"mortonjt","id":4184797,"avatar_url":"https://avatars.githubusercontent.com/u/4184797?v=3","gravatar_id":"","url":"https://api.github.com/users/mortonjt","html_url":"https://github.com/mortonjt","followers_url":"https://api.github.com/users/mortonjt/followers","following_url":"https://api.github.com/users/mortonjt/following{/other_user}","gists_url":"https://api.github.com/users/mortonjt/gists{/gist_id}","starred_url":"https://api.github.com/users/mortonjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortonjt/subscriptions","organizations_url":"https://api.github.com/users/mortonjt/orgs","repos_url":"https://api.github.com/users/mortonjt/repos","events_url":"https://api.github.com/users/mortonjt/events{/privacy}","received_events_url":"https://api.github.com/users/mortonjt/received_events","type":"User","site_admin":false},"repo":{"id":44258578,"name":"micronota","full_name":"mortonjt/micronota","owner":{"login":"mortonjt","id":4184797,"avatar_url":"https://avatars.githubusercontent.com/u/4184797?v=3","gravatar_id":"","url":"https://api.github.com/users/mortonjt","html_url":"https://github.com/mortonjt","followers_url":"https://api.github.com/users/mortonjt/followers","following_url":"https://api.github.com/users/mortonjt/following{/other_user}","gists_url":"https://api.github.com/users/mortonjt/gists{/gist_id}","starred_url":"https://api.github.com/users/mortonjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortonjt/subscriptions","organizations_url":"https://api.github.com/users/mortonjt/orgs","repos_url":"https://api.github.com/users/mortonjt/repos","events_url":"https://api.github.com/users/mortonjt/events{/privacy}","received_events_url":"https://api.github.com/users/mortonjt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mortonjt/micronota","description":"annotation pipeline for microbial genomes and metagenomes","fork":true,"url":"https://api.github.com/repos/mortonjt/micronota","forks_url":"https://api.github.com/repos/mortonjt/micronota/forks","keys_url":"https://api.github.com/repos/mortonjt/micronota/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mortonjt/micronota/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mortonjt/micronota/teams","hooks_url":"https://api.github.com/repos/mortonjt/micronota/hooks","issue_events_url":"https://api.github.com/repos/mortonjt/micronota/issues/events{/number}","events_url":"https://api.github.com/repos/mortonjt/micronota/events","assignees_url":"https://api.github.com/repos/mortonjt/micronota/assignees{/user}","branches_url":"https://api.github.com/repos/mortonjt/micronota/branches{/branch}","tags_url":"https://api.github.com/repos/mortonjt/micronota/tags","blobs_url":"https://api.github.com/repos/mortonjt/micronota/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mortonjt/micronota/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mortonjt/micronota/git/refs{/sha}","trees_url":"https://api.github.com/repos/mortonjt/micronota/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mortonjt/micronota/statuses/{sha}","languages_url":"https://api.github.com/repos/mortonjt/micronota/languages","stargazers_url":"https://api.github.com/repos/mortonjt/micronota/stargazers","contributors_url":"https://api.github.com/repos/mortonjt/micronota/contributors","subscribers_url":"https://api.github.com/repos/mortonjt/micronota/subscribers","subscription_url":"https://api.github.com/repos/mortonjt/micronota/subscription","commits_url":"https://api.github.com/repos/mortonjt/micronota/commits{/sha}","git_commits_url":"https://api.github.com/repos/mortonjt/micronota/git/commits{/sha}","comments_url":"https://api.github.com/repos/mortonjt/micronota/comments{/number}","issue_comment_url":"https://api.github.com/repos/mortonjt/micronota/issues/comments{/number}","contents_url":"https://api.github.com/repos/mortonjt/micronota/contents/{+path}","compare_url":"https://api.github.com/repos/mortonjt/micronota/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mortonjt/micronota/merges","archive_url":"https://api.github.com/repos/mortonjt/micronota/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mortonjt/micronota/downloads","issues_url":"https://api.github.com/repos/mortonjt/micronota/issues{/number}","pulls_url":"https://api.github.com/repos/mortonjt/micronota/pulls{/number}","milestones_url":"https://api.github.com/repos/mortonjt/micronota/milestones{/number}","notifications_url":"https://api.github.com/repos/mortonjt/micronota/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mortonjt/micronota/labels{/name}","releases_url":"https://api.github.com/repos/mortonjt/micronota/releases{/id}","deployments_url":"https://api.github.com/repos/mortonjt/micronota/deployments","created_at":"2015-10-14T15:46:43Z","updated_at":"2016-03-22T22:27:23Z","pushed_at":"2016-03-25T02:47:07Z","git_url":"git://github.com/mortonjt/micronota.git","ssh_url":"git@github.com:mortonjt/micronota.git","clone_url":"https://github.com/mortonjt/micronota.git","svn_url":"https://github.com/mortonjt/micronota","homepage":null,"size":1258,"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":"biocore:master","ref":"master","sha":"34adc49bd1a62ebce3b6c022d2c1ec3947c55f27","user":{"login":"biocore","id":6241857,"avatar_url":"https://avatars.githubusercontent.com/u/6241857?v=3","gravatar_id":"","url":"https://api.github.com/users/biocore","html_url":"https://github.com/biocore","followers_url":"https://api.github.com/users/biocore/followers","following_url":"https://api.github.com/users/biocore/following{/other_user}","gists_url":"https://api.github.com/users/biocore/gists{/gist_id}","starred_url":"https://api.github.com/users/biocore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biocore/subscriptions","organizations_url":"https://api.github.com/users/biocore/orgs","repos_url":"https://api.github.com/users/biocore/repos","events_url":"https://api.github.com/users/biocore/events{/privacy}","received_events_url":"https://api.github.com/users/biocore/received_events","type":"Organization","site_admin":false},"repo":{"id":43972497,"name":"micronota","full_name":"biocore/micronota","owner":{"login":"biocore","id":6241857,"avatar_url":"https://avatars.githubusercontent.com/u/6241857?v=3","gravatar_id":"","url":"https://api.github.com/users/biocore","html_url":"https://github.com/biocore","followers_url":"https://api.github.com/users/biocore/followers","following_url":"https://api.github.com/users/biocore/following{/other_user}","gists_url":"https://api.github.com/users/biocore/gists{/gist_id}","starred_url":"https://api.github.com/users/biocore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biocore/subscriptions","organizations_url":"https://api.github.com/users/biocore/orgs","repos_url":"https://api.github.com/users/biocore/repos","events_url":"https://api.github.com/users/biocore/events{/privacy}","received_events_url":"https://api.github.com/users/biocore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biocore/micronota","description":"annotation pipeline for microbial genomes and metagenomes","fork":false,"url":"https://api.github.com/repos/biocore/micronota","forks_url":"https://api.github.com/repos/biocore/micronota/forks","keys_url":"https://api.github.com/repos/biocore/micronota/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biocore/micronota/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biocore/micronota/teams","hooks_url":"https://api.github.com/repos/biocore/micronota/hooks","issue_events_url":"https://api.github.com/repos/biocore/micronota/issues/events{/number}","events_url":"https://api.github.com/repos/biocore/micronota/events","assignees_url":"https://api.github.com/repos/biocore/micronota/assignees{/user}","branches_url":"https://api.github.com/repos/biocore/micronota/branches{/branch}","tags_url":"https://api.github.com/repos/biocore/micronota/tags","blobs_url":"https://api.github.com/repos/biocore/micronota/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biocore/micronota/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biocore/micronota/git/refs{/sha}","trees_url":"https://api.github.com/repos/biocore/micronota/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biocore/micronota/statuses/{sha}","languages_url":"https://api.github.com/repos/biocore/micronota/languages","stargazers_url":"https://api.github.com/repos/biocore/micronota/stargazers","contributors_url":"https://api.github.com/repos/biocore/micronota/contributors","subscribers_url":"https://api.github.com/repos/biocore/micronota/subscribers","subscription_url":"https://api.github.com/repos/biocore/micronota/subscription","commits_url":"https://api.github.com/repos/biocore/micronota/commits{/sha}","git_commits_url":"https://api.github.com/repos/biocore/micronota/git/commits{/sha}","comments_url":"https://api.github.com/repos/biocore/micronota/comments{/number}","issue_comment_url":"https://api.github.com/repos/biocore/micronota/issues/comments{/number}","contents_url":"https://api.github.com/repos/biocore/micronota/contents/{+path}","compare_url":"https://api.github.com/repos/biocore/micronota/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biocore/micronota/merges","archive_url":"https://api.github.com/repos/biocore/micronota/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biocore/micronota/downloads","issues_url":"https://api.github.com/repos/biocore/micronota/issues{/number}","pulls_url":"https://api.github.com/repos/biocore/micronota/pulls{/number}","milestones_url":"https://api.github.com/repos/biocore/micronota/milestones{/number}","notifications_url":"https://api.github.com/repos/biocore/micronota/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biocore/micronota/labels{/name}","releases_url":"https://api.github.com/repos/biocore/micronota/releases{/id}","deployments_url":"https://api.github.com/repos/biocore/micronota/deployments","created_at":"2015-10-09T18:17:37Z","updated_at":"2016-03-22T16:20:32Z","pushed_at":"2016-03-25T02:47:08Z","git_url":"git://github.com/biocore/micronota.git","ssh_url":"git@github.com:biocore/micronota.git","clone_url":"https://github.com/biocore/micronota.git","svn_url":"https://github.com/biocore/micronota","homepage":null,"size":1547,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":29,"forks":6,"open_issues":29,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biocore/micronota/pulls/71"},"html":{"href":"https://github.com/biocore/micronota/pull/71"},"issue":{"href":"https://api.github.com/repos/biocore/micronota/issues/71"},"comments":{"href":"https://api.github.com/repos/biocore/micronota/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/biocore/micronota/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/biocore/micronota/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biocore/micronota/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/biocore/micronota/statuses/b08e79629191980c779ad85c084d7426f68d52a2"}}}}