{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/quwubin/qu-mfeindex/pulls/1","id":43975503,"html_url":"https://github.com/quwubin/qu-mfeindex/pull/1","diff_url":"https://github.com/quwubin/qu-mfeindex/pull/1.diff","patch_url":"https://github.com/quwubin/qu-mfeindex/pull/1.patch","issue_url":"https://api.github.com/repos/quwubin/qu-mfeindex/issues/1","number":1,"state":"closed","locked":false,"title":"Speed up pymfeindex for large inputs, and keep tighter bounds on memory usage.","user":{"login":"daviesrob","id":3234562,"avatar_url":"https://avatars.githubusercontent.com/u/3234562?v=3","gravatar_id":"","url":"https://api.github.com/users/daviesrob","html_url":"https://github.com/daviesrob","followers_url":"https://api.github.com/users/daviesrob/followers","following_url":"https://api.github.com/users/daviesrob/following{/other_user}","gists_url":"https://api.github.com/users/daviesrob/gists{/gist_id}","starred_url":"https://api.github.com/users/daviesrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviesrob/subscriptions","organizations_url":"https://api.github.com/users/daviesrob/orgs","repos_url":"https://api.github.com/users/daviesrob/repos","events_url":"https://api.github.com/users/daviesrob/events{/privacy}","received_events_url":"https://api.github.com/users/daviesrob/received_events","type":"User","site_admin":false},"body":"This is a change to how pymfeindex works.  It has two goals: to improve the execution speed for big input files (e.g. the Human genome) and to make it easier to control the amount of memory the program uses.\r\n\r\nThe first of these is achieved mainly by using bytearrays (which grow in linear time) instead of python strings (which are quadratic).\r\n\r\nFor the second, the strategy of collecting data in a hash table is replaced with a method based on sorting and merging.  Partially sorted data can be written to disk and re-read later at the merge stage.  This makes it much easier to limit the memory used.\r\n\r\nThe result is a little bit slower when indexing small inputs, but much faster on big ones.  For example, I managed to index the human genome in about 10 hours, using about 6.6 Gb RAM, and about 20 Gb of temporary storage.\r\n","created_at":"2015-09-02T10:21:47Z","updated_at":"2015-09-05T13:03:15Z","closed_at":"2015-09-05T13:03:15Z","merged_at":"2015-09-05T13:03:15Z","merge_commit_sha":"34fbdde23e400c5662f4f3fc9326bab49fd695a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/quwubin/qu-mfeindex/pulls/1/commits","review_comments_url":"https://api.github.com/repos/quwubin/qu-mfeindex/pulls/1/comments","review_comment_url":"https://api.github.com/repos/quwubin/qu-mfeindex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quwubin/qu-mfeindex/issues/1/comments","statuses_url":"https://api.github.com/repos/quwubin/qu-mfeindex/statuses/56ec88bfd4bfe53e4d0628b827bf9a6705217075","head":{"label":"daviesrob:pymfeindex","ref":"pymfeindex","sha":"56ec88bfd4bfe53e4d0628b827bf9a6705217075","user":{"login":"daviesrob","id":3234562,"avatar_url":"https://avatars.githubusercontent.com/u/3234562?v=3","gravatar_id":"","url":"https://api.github.com/users/daviesrob","html_url":"https://github.com/daviesrob","followers_url":"https://api.github.com/users/daviesrob/followers","following_url":"https://api.github.com/users/daviesrob/following{/other_user}","gists_url":"https://api.github.com/users/daviesrob/gists{/gist_id}","starred_url":"https://api.github.com/users/daviesrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviesrob/subscriptions","organizations_url":"https://api.github.com/users/daviesrob/orgs","repos_url":"https://api.github.com/users/daviesrob/repos","events_url":"https://api.github.com/users/daviesrob/events{/privacy}","received_events_url":"https://api.github.com/users/daviesrob/received_events","type":"User","site_admin":false},"repo":{"id":37980006,"name":"qu-mfeindex","full_name":"daviesrob/qu-mfeindex","owner":{"login":"daviesrob","id":3234562,"avatar_url":"https://avatars.githubusercontent.com/u/3234562?v=3","gravatar_id":"","url":"https://api.github.com/users/daviesrob","html_url":"https://github.com/daviesrob","followers_url":"https://api.github.com/users/daviesrob/followers","following_url":"https://api.github.com/users/daviesrob/following{/other_user}","gists_url":"https://api.github.com/users/daviesrob/gists{/gist_id}","starred_url":"https://api.github.com/users/daviesrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviesrob/subscriptions","organizations_url":"https://api.github.com/users/daviesrob/orgs","repos_url":"https://api.github.com/users/daviesrob/repos","events_url":"https://api.github.com/users/daviesrob/events{/privacy}","received_events_url":"https://api.github.com/users/daviesrob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daviesrob/qu-mfeindex","description":"DNA sequence indexer originally developed for MFEprimer-2.0.  This is not the official repository, see quwubin/qu-mfeindex for that.","fork":true,"url":"https://api.github.com/repos/daviesrob/qu-mfeindex","forks_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/forks","keys_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/teams","hooks_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/hooks","issue_events_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/issues/events{/number}","events_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/events","assignees_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/assignees{/user}","branches_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/branches{/branch}","tags_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/tags","blobs_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/git/refs{/sha}","trees_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/statuses/{sha}","languages_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/languages","stargazers_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/stargazers","contributors_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/contributors","subscribers_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/subscribers","subscription_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/subscription","commits_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/commits{/sha}","git_commits_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/git/commits{/sha}","comments_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/comments{/number}","issue_comment_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/issues/comments{/number}","contents_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/contents/{+path}","compare_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/merges","archive_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/downloads","issues_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/issues{/number}","pulls_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/pulls{/number}","milestones_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/milestones{/number}","notifications_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/labels{/name}","releases_url":"https://api.github.com/repos/daviesrob/qu-mfeindex/releases{/id}","created_at":"2015-06-24T11:16:06Z","updated_at":"2015-09-02T09:17:53Z","pushed_at":"2015-09-02T09:17:53Z","git_url":"git://github.com/daviesrob/qu-mfeindex.git","ssh_url":"git@github.com:daviesrob/qu-mfeindex.git","clone_url":"https://github.com/daviesrob/qu-mfeindex.git","svn_url":"https://github.com/daviesrob/qu-mfeindex","homepage":"","size":116,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"pymfeindex"}},"base":{"label":"quwubin:master","ref":"master","sha":"1c29f576a814d96b4229b23ad8a8e8b8729e00ef","user":{"login":"quwubin","id":9742,"avatar_url":"https://avatars.githubusercontent.com/u/9742?v=3","gravatar_id":"","url":"https://api.github.com/users/quwubin","html_url":"https://github.com/quwubin","followers_url":"https://api.github.com/users/quwubin/followers","following_url":"https://api.github.com/users/quwubin/following{/other_user}","gists_url":"https://api.github.com/users/quwubin/gists{/gist_id}","starred_url":"https://api.github.com/users/quwubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quwubin/subscriptions","organizations_url":"https://api.github.com/users/quwubin/orgs","repos_url":"https://api.github.com/users/quwubin/repos","events_url":"https://api.github.com/users/quwubin/events{/privacy}","received_events_url":"https://api.github.com/users/quwubin/received_events","type":"User","site_admin":false},"repo":{"id":19231236,"name":"qu-mfeindex","full_name":"quwubin/qu-mfeindex","owner":{"login":"quwubin","id":9742,"avatar_url":"https://avatars.githubusercontent.com/u/9742?v=3","gravatar_id":"","url":"https://api.github.com/users/quwubin","html_url":"https://github.com/quwubin","followers_url":"https://api.github.com/users/quwubin/followers","following_url":"https://api.github.com/users/quwubin/following{/other_user}","gists_url":"https://api.github.com/users/quwubin/gists{/gist_id}","starred_url":"https://api.github.com/users/quwubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quwubin/subscriptions","organizations_url":"https://api.github.com/users/quwubin/orgs","repos_url":"https://api.github.com/users/quwubin/repos","events_url":"https://api.github.com/users/quwubin/events{/privacy}","received_events_url":"https://api.github.com/users/quwubin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/quwubin/qu-mfeindex","description":"DNA sequence indexer originally developed for MFEprimer-2.0","fork":false,"url":"https://api.github.com/repos/quwubin/qu-mfeindex","forks_url":"https://api.github.com/repos/quwubin/qu-mfeindex/forks","keys_url":"https://api.github.com/repos/quwubin/qu-mfeindex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quwubin/qu-mfeindex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quwubin/qu-mfeindex/teams","hooks_url":"https://api.github.com/repos/quwubin/qu-mfeindex/hooks","issue_events_url":"https://api.github.com/repos/quwubin/qu-mfeindex/issues/events{/number}","events_url":"https://api.github.com/repos/quwubin/qu-mfeindex/events","assignees_url":"https://api.github.com/repos/quwubin/qu-mfeindex/assignees{/user}","branches_url":"https://api.github.com/repos/quwubin/qu-mfeindex/branches{/branch}","tags_url":"https://api.github.com/repos/quwubin/qu-mfeindex/tags","blobs_url":"https://api.github.com/repos/quwubin/qu-mfeindex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quwubin/qu-mfeindex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quwubin/qu-mfeindex/git/refs{/sha}","trees_url":"https://api.github.com/repos/quwubin/qu-mfeindex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quwubin/qu-mfeindex/statuses/{sha}","languages_url":"https://api.github.com/repos/quwubin/qu-mfeindex/languages","stargazers_url":"https://api.github.com/repos/quwubin/qu-mfeindex/stargazers","contributors_url":"https://api.github.com/repos/quwubin/qu-mfeindex/contributors","subscribers_url":"https://api.github.com/repos/quwubin/qu-mfeindex/subscribers","subscription_url":"https://api.github.com/repos/quwubin/qu-mfeindex/subscription","commits_url":"https://api.github.com/repos/quwubin/qu-mfeindex/commits{/sha}","git_commits_url":"https://api.github.com/repos/quwubin/qu-mfeindex/git/commits{/sha}","comments_url":"https://api.github.com/repos/quwubin/qu-mfeindex/comments{/number}","issue_comment_url":"https://api.github.com/repos/quwubin/qu-mfeindex/issues/comments{/number}","contents_url":"https://api.github.com/repos/quwubin/qu-mfeindex/contents/{+path}","compare_url":"https://api.github.com/repos/quwubin/qu-mfeindex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quwubin/qu-mfeindex/merges","archive_url":"https://api.github.com/repos/quwubin/qu-mfeindex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quwubin/qu-mfeindex/downloads","issues_url":"https://api.github.com/repos/quwubin/qu-mfeindex/issues{/number}","pulls_url":"https://api.github.com/repos/quwubin/qu-mfeindex/pulls{/number}","milestones_url":"https://api.github.com/repos/quwubin/qu-mfeindex/milestones{/number}","notifications_url":"https://api.github.com/repos/quwubin/qu-mfeindex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quwubin/qu-mfeindex/labels{/name}","releases_url":"https://api.github.com/repos/quwubin/qu-mfeindex/releases{/id}","created_at":"2014-04-28T08:02:18Z","updated_at":"2014-08-24T07:40:47Z","pushed_at":"2015-09-05T13:03:15Z","git_url":"git://github.com/quwubin/qu-mfeindex.git","ssh_url":"git@github.com:quwubin/qu-mfeindex.git","clone_url":"https://github.com/quwubin/qu-mfeindex.git","svn_url":"https://github.com/quwubin/qu-mfeindex","homepage":null,"size":163,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quwubin/qu-mfeindex/pulls/1"},"html":{"href":"https://github.com/quwubin/qu-mfeindex/pull/1"},"issue":{"href":"https://api.github.com/repos/quwubin/qu-mfeindex/issues/1"},"comments":{"href":"https://api.github.com/repos/quwubin/qu-mfeindex/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/quwubin/qu-mfeindex/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/quwubin/qu-mfeindex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quwubin/qu-mfeindex/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/quwubin/qu-mfeindex/statuses/56ec88bfd4bfe53e4d0628b827bf9a6705217075"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"quwubin","id":9742,"avatar_url":"https://avatars.githubusercontent.com/u/9742?v=3","gravatar_id":"","url":"https://api.github.com/users/quwubin","html_url":"https://github.com/quwubin","followers_url":"https://api.github.com/users/quwubin/followers","following_url":"https://api.github.com/users/quwubin/following{/other_user}","gists_url":"https://api.github.com/users/quwubin/gists{/gist_id}","starred_url":"https://api.github.com/users/quwubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quwubin/subscriptions","organizations_url":"https://api.github.com/users/quwubin/orgs","repos_url":"https://api.github.com/users/quwubin/repos","events_url":"https://api.github.com/users/quwubin/events{/privacy}","received_events_url":"https://api.github.com/users/quwubin/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":9,"additions":418,"deletions":141,"changed_files":5}}