{"action":"created","comment":{"url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/comments/149487941","pull_request_review_id":74889112,"id":149487941,"diff_hunk":"@@ -25,20 +27,62 @@ def execute_command(command):\n     output = subprocess.check_output(command, shell=True)\n     return output\n \n+def split_fasta(fasta_file, max_fasta_part_size):\n+    fasta_file_list = []\n+    part_idx = 0; current_size = 0\n+    current_output_file_name = \"%s.%d\" % (fasta_file, part_idx)\n+    current_output_file = open(current_output_file_name, 'wb')\n+    fasta_file_list.append(current_output_file_name)\n+    with open(fasta_file, 'rb') as input_f:\n+        current_read = input_f.readline()\n+        for line in input_f:","path":"aws_batch/indexing.py","position":21,"original_position":21,"commit_id":"24c19b9074e679947def9d1199c3e1fbe0d34f09","original_commit_id":"24c19b9074e679947def9d1199c3e1fbe0d34f09","user":{"login":"boris-dimitrov","id":22705973,"avatar_url":"https://avatars0.githubusercontent.com/u/22705973?v=4","gravatar_id":"","url":"https://api.github.com/users/boris-dimitrov","html_url":"https://github.com/boris-dimitrov","followers_url":"https://api.github.com/users/boris-dimitrov/followers","following_url":"https://api.github.com/users/boris-dimitrov/following{/other_user}","gists_url":"https://api.github.com/users/boris-dimitrov/gists{/gist_id}","starred_url":"https://api.github.com/users/boris-dimitrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boris-dimitrov/subscriptions","organizations_url":"https://api.github.com/users/boris-dimitrov/orgs","repos_url":"https://api.github.com/users/boris-dimitrov/repos","events_url":"https://api.github.com/users/boris-dimitrov/events{/privacy}","received_events_url":"https://api.github.com/users/boris-dimitrov/received_events","type":"User","site_admin":false},"body":"i believe in python 2.7 this \"for line in input_f\" reads the entire file in memory.","created_at":"2017-11-07T20:02:46Z","updated_at":"2017-11-07T20:02:46Z","html_url":"https://github.com/chanzuckerberg/idseq-web/pull/296#discussion_r149487941","pull_request_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/296","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/comments/149487941"},"html":{"href":"https://github.com/chanzuckerberg/idseq-web/pull/296#discussion_r149487941"},"pull_request":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/296"}}},"pull_request":{"url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/296","id":151009131,"html_url":"https://github.com/chanzuckerberg/idseq-web/pull/296","diff_url":"https://github.com/chanzuckerberg/idseq-web/pull/296.diff","patch_url":"https://github.com/chanzuckerberg/idseq-web/pull/296.patch","issue_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/296","number":296,"state":"open","locked":false,"title":"Star partitions","user":{"login":"yunfangjuan","id":1704002,"avatar_url":"https://avatars0.githubusercontent.com/u/1704002?v=4","gravatar_id":"","url":"https://api.github.com/users/yunfangjuan","html_url":"https://github.com/yunfangjuan","followers_url":"https://api.github.com/users/yunfangjuan/followers","following_url":"https://api.github.com/users/yunfangjuan/following{/other_user}","gists_url":"https://api.github.com/users/yunfangjuan/gists{/gist_id}","starred_url":"https://api.github.com/users/yunfangjuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yunfangjuan/subscriptions","organizations_url":"https://api.github.com/users/yunfangjuan/orgs","repos_url":"https://api.github.com/users/yunfangjuan/repos","events_url":"https://api.github.com/users/yunfangjuan/events{/privacy}","received_events_url":"https://api.github.com/users/yunfangjuan/received_events","type":"User","site_admin":false},"body":"STAR Indexing partitioning\r\nTest Plan\r\n- Run indexing.py on science.czi-e.com\r\n- Run pipeline.py on sciece.czi-e.com \r\n\r\nEnsure everything works with the right output. ","created_at":"2017-11-07T02:14:19Z","updated_at":"2017-11-07T20:02:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/296/commits","review_comments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/296/comments","review_comment_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/296/comments","statuses_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/statuses/24c19b9074e679947def9d1199c3e1fbe0d34f09","head":{"label":"chanzuckerberg:star_partitions","ref":"star_partitions","sha":"24c19b9074e679947def9d1199c3e1fbe0d34f09","user":{"login":"chanzuckerberg","id":19917299,"avatar_url":"https://avatars2.githubusercontent.com/u/19917299?v=4","gravatar_id":"","url":"https://api.github.com/users/chanzuckerberg","html_url":"https://github.com/chanzuckerberg","followers_url":"https://api.github.com/users/chanzuckerberg/followers","following_url":"https://api.github.com/users/chanzuckerberg/following{/other_user}","gists_url":"https://api.github.com/users/chanzuckerberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chanzuckerberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanzuckerberg/subscriptions","organizations_url":"https://api.github.com/users/chanzuckerberg/orgs","repos_url":"https://api.github.com/users/chanzuckerberg/repos","events_url":"https://api.github.com/users/chanzuckerberg/events{/privacy}","received_events_url":"https://api.github.com/users/chanzuckerberg/received_events","type":"Organization","site_admin":false},"repo":{"id":99148438,"name":"idseq-web","full_name":"chanzuckerberg/idseq-web","owner":{"login":"chanzuckerberg","id":19917299,"avatar_url":"https://avatars2.githubusercontent.com/u/19917299?v=4","gravatar_id":"","url":"https://api.github.com/users/chanzuckerberg","html_url":"https://github.com/chanzuckerberg","followers_url":"https://api.github.com/users/chanzuckerberg/followers","following_url":"https://api.github.com/users/chanzuckerberg/following{/other_user}","gists_url":"https://api.github.com/users/chanzuckerberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chanzuckerberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanzuckerberg/subscriptions","organizations_url":"https://api.github.com/users/chanzuckerberg/orgs","repos_url":"https://api.github.com/users/chanzuckerberg/repos","events_url":"https://api.github.com/users/chanzuckerberg/events{/privacy}","received_events_url":"https://api.github.com/users/chanzuckerberg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chanzuckerberg/idseq-web","description":null,"fork":false,"url":"https://api.github.com/repos/chanzuckerberg/idseq-web","forks_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/forks","keys_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/teams","hooks_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/hooks","issue_events_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/events{/number}","events_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/events","assignees_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/assignees{/user}","branches_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/branches{/branch}","tags_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/tags","blobs_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/statuses/{sha}","languages_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/languages","stargazers_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/stargazers","contributors_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/contributors","subscribers_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/subscribers","subscription_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/subscription","commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/contents/{+path}","compare_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/merges","archive_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/downloads","issues_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues{/number}","pulls_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls{/number}","milestones_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/milestones{/number}","notifications_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/labels{/name}","releases_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/releases{/id}","deployments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/deployments","created_at":"2017-08-02T18:24:03Z","updated_at":"2017-11-06T19:41:29Z","pushed_at":"2017-11-07T20:01:49Z","git_url":"git://github.com/chanzuckerberg/idseq-web.git","ssh_url":"git@github.com:chanzuckerberg/idseq-web.git","clone_url":"https://github.com/chanzuckerberg/idseq-web.git","svn_url":"https://github.com/chanzuckerberg/idseq-web","homepage":null,"size":19735,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":4,"default_branch":"master"}},"base":{"label":"chanzuckerberg:master","ref":"master","sha":"0d3bbba2bcea1cecad4f987bead2ffc2ae37fbf3","user":{"login":"chanzuckerberg","id":19917299,"avatar_url":"https://avatars2.githubusercontent.com/u/19917299?v=4","gravatar_id":"","url":"https://api.github.com/users/chanzuckerberg","html_url":"https://github.com/chanzuckerberg","followers_url":"https://api.github.com/users/chanzuckerberg/followers","following_url":"https://api.github.com/users/chanzuckerberg/following{/other_user}","gists_url":"https://api.github.com/users/chanzuckerberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chanzuckerberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanzuckerberg/subscriptions","organizations_url":"https://api.github.com/users/chanzuckerberg/orgs","repos_url":"https://api.github.com/users/chanzuckerberg/repos","events_url":"https://api.github.com/users/chanzuckerberg/events{/privacy}","received_events_url":"https://api.github.com/users/chanzuckerberg/received_events","type":"Organization","site_admin":false},"repo":{"id":99148438,"name":"idseq-web","full_name":"chanzuckerberg/idseq-web","owner":{"login":"chanzuckerberg","id":19917299,"avatar_url":"https://avatars2.githubusercontent.com/u/19917299?v=4","gravatar_id":"","url":"https://api.github.com/users/chanzuckerberg","html_url":"https://github.com/chanzuckerberg","followers_url":"https://api.github.com/users/chanzuckerberg/followers","following_url":"https://api.github.com/users/chanzuckerberg/following{/other_user}","gists_url":"https://api.github.com/users/chanzuckerberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chanzuckerberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanzuckerberg/subscriptions","organizations_url":"https://api.github.com/users/chanzuckerberg/orgs","repos_url":"https://api.github.com/users/chanzuckerberg/repos","events_url":"https://api.github.com/users/chanzuckerberg/events{/privacy}","received_events_url":"https://api.github.com/users/chanzuckerberg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chanzuckerberg/idseq-web","description":null,"fork":false,"url":"https://api.github.com/repos/chanzuckerberg/idseq-web","forks_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/forks","keys_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/teams","hooks_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/hooks","issue_events_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/events{/number}","events_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/events","assignees_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/assignees{/user}","branches_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/branches{/branch}","tags_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/tags","blobs_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/statuses/{sha}","languages_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/languages","stargazers_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/stargazers","contributors_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/contributors","subscribers_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/subscribers","subscription_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/subscription","commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/contents/{+path}","compare_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/merges","archive_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/downloads","issues_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues{/number}","pulls_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls{/number}","milestones_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/milestones{/number}","notifications_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/labels{/name}","releases_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/releases{/id}","deployments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/deployments","created_at":"2017-08-02T18:24:03Z","updated_at":"2017-11-06T19:41:29Z","pushed_at":"2017-11-07T20:01:49Z","git_url":"git://github.com/chanzuckerberg/idseq-web.git","ssh_url":"git@github.com:chanzuckerberg/idseq-web.git","clone_url":"https://github.com/chanzuckerberg/idseq-web.git","svn_url":"https://github.com/chanzuckerberg/idseq-web","homepage":null,"size":19735,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/296"},"html":{"href":"https://github.com/chanzuckerberg/idseq-web/pull/296"},"issue":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/296"},"comments":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/296/comments"},"review_comments":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/296/comments"},"review_comment":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/296/commits"},"statuses":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/statuses/24c19b9074e679947def9d1199c3e1fbe0d34f09"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"boris-dimitrov"}}