{"action":"closed","number":387,"pull_request":{"url":"https://api.github.com/repos/samtools/htslib/pulls/387","id":72902433,"html_url":"https://github.com/samtools/htslib/pull/387","diff_url":"https://github.com/samtools/htslib/pull/387.diff","patch_url":"https://github.com/samtools/htslib/pull/387.patch","issue_url":"https://api.github.com/repos/samtools/htslib/issues/387","number":387,"state":"closed","locked":false,"title":"Rebgzip","user":{"login":"jacrayner","id":16320714,"avatar_url":"https://avatars.githubusercontent.com/u/16320714?v=3","gravatar_id":"","url":"https://api.github.com/users/jacrayner","html_url":"https://github.com/jacrayner","followers_url":"https://api.github.com/users/jacrayner/followers","following_url":"https://api.github.com/users/jacrayner/following{/other_user}","gists_url":"https://api.github.com/users/jacrayner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacrayner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacrayner/subscriptions","organizations_url":"https://api.github.com/users/jacrayner/orgs","repos_url":"https://api.github.com/users/jacrayner/repos","events_url":"https://api.github.com/users/jacrayner/events{/privacy}","received_events_url":"https://api.github.com/users/jacrayner/received_events","type":"User","site_admin":false},"body":"Rebgzip a using an index file as file as discussed  in #377. Lets you decompress a BGZF and then re-compress it to obtain the same segregation of blocks. Given that BAM files are by definition bgzipped, it is useful for validation.\r\n\r\nI am using this specifically for validating BAM-->CRAM-->BAM conversion, to obtain a bit match of the original BAM but this relies on the cramming process not changing any of the underlying data which may not be the norm depending on your initial BAM and cramming utility.\r\n\r\nPossibly need to add a check that the amount of compressed data is as expected by the index, as the compression level and strategy may need to be modified. However this can only be done within bgzf_block_write() when not using multi threading.  ","created_at":"2016-06-07T15:59:50Z","updated_at":"2016-09-05T09:12:54Z","closed_at":"2016-09-05T09:12:54Z","merged_at":null,"merge_commit_sha":"8ff60719e1268349c647410061f5f691621e7b48","assignee":{"login":"jkbonfield","id":2210525,"avatar_url":"https://avatars.githubusercontent.com/u/2210525?v=3","gravatar_id":"","url":"https://api.github.com/users/jkbonfield","html_url":"https://github.com/jkbonfield","followers_url":"https://api.github.com/users/jkbonfield/followers","following_url":"https://api.github.com/users/jkbonfield/following{/other_user}","gists_url":"https://api.github.com/users/jkbonfield/gists{/gist_id}","starred_url":"https://api.github.com/users/jkbonfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkbonfield/subscriptions","organizations_url":"https://api.github.com/users/jkbonfield/orgs","repos_url":"https://api.github.com/users/jkbonfield/repos","events_url":"https://api.github.com/users/jkbonfield/events{/privacy}","received_events_url":"https://api.github.com/users/jkbonfield/received_events","type":"User","site_admin":false},"assignees":[{"login":"jkbonfield","id":2210525,"avatar_url":"https://avatars.githubusercontent.com/u/2210525?v=3","gravatar_id":"","url":"https://api.github.com/users/jkbonfield","html_url":"https://github.com/jkbonfield","followers_url":"https://api.github.com/users/jkbonfield/followers","following_url":"https://api.github.com/users/jkbonfield/following{/other_user}","gists_url":"https://api.github.com/users/jkbonfield/gists{/gist_id}","starred_url":"https://api.github.com/users/jkbonfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkbonfield/subscriptions","organizations_url":"https://api.github.com/users/jkbonfield/orgs","repos_url":"https://api.github.com/users/jkbonfield/repos","events_url":"https://api.github.com/users/jkbonfield/events{/privacy}","received_events_url":"https://api.github.com/users/jkbonfield/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/samtools/htslib/pulls/387/commits","review_comments_url":"https://api.github.com/repos/samtools/htslib/pulls/387/comments","review_comment_url":"https://api.github.com/repos/samtools/htslib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/samtools/htslib/issues/387/comments","statuses_url":"https://api.github.com/repos/samtools/htslib/statuses/33de3743582189bfe9e02556de5aea48c6c4dff2","head":{"label":"jacrayner:rebgzip","ref":"rebgzip","sha":"33de3743582189bfe9e02556de5aea48c6c4dff2","user":{"login":"jacrayner","id":16320714,"avatar_url":"https://avatars.githubusercontent.com/u/16320714?v=3","gravatar_id":"","url":"https://api.github.com/users/jacrayner","html_url":"https://github.com/jacrayner","followers_url":"https://api.github.com/users/jacrayner/followers","following_url":"https://api.github.com/users/jacrayner/following{/other_user}","gists_url":"https://api.github.com/users/jacrayner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacrayner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacrayner/subscriptions","organizations_url":"https://api.github.com/users/jacrayner/orgs","repos_url":"https://api.github.com/users/jacrayner/repos","events_url":"https://api.github.com/users/jacrayner/events{/privacy}","received_events_url":"https://api.github.com/users/jacrayner/received_events","type":"User","site_admin":false},"repo":{"id":60602495,"name":"htslib","full_name":"jacrayner/htslib","owner":{"login":"jacrayner","id":16320714,"avatar_url":"https://avatars.githubusercontent.com/u/16320714?v=3","gravatar_id":"","url":"https://api.github.com/users/jacrayner","html_url":"https://github.com/jacrayner","followers_url":"https://api.github.com/users/jacrayner/followers","following_url":"https://api.github.com/users/jacrayner/following{/other_user}","gists_url":"https://api.github.com/users/jacrayner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacrayner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacrayner/subscriptions","organizations_url":"https://api.github.com/users/jacrayner/orgs","repos_url":"https://api.github.com/users/jacrayner/repos","events_url":"https://api.github.com/users/jacrayner/events{/privacy}","received_events_url":"https://api.github.com/users/jacrayner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacrayner/htslib","description":"C library for high-throughput sequencing data formats","fork":true,"url":"https://api.github.com/repos/jacrayner/htslib","forks_url":"https://api.github.com/repos/jacrayner/htslib/forks","keys_url":"https://api.github.com/repos/jacrayner/htslib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacrayner/htslib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacrayner/htslib/teams","hooks_url":"https://api.github.com/repos/jacrayner/htslib/hooks","issue_events_url":"https://api.github.com/repos/jacrayner/htslib/issues/events{/number}","events_url":"https://api.github.com/repos/jacrayner/htslib/events","assignees_url":"https://api.github.com/repos/jacrayner/htslib/assignees{/user}","branches_url":"https://api.github.com/repos/jacrayner/htslib/branches{/branch}","tags_url":"https://api.github.com/repos/jacrayner/htslib/tags","blobs_url":"https://api.github.com/repos/jacrayner/htslib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacrayner/htslib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacrayner/htslib/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacrayner/htslib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacrayner/htslib/statuses/{sha}","languages_url":"https://api.github.com/repos/jacrayner/htslib/languages","stargazers_url":"https://api.github.com/repos/jacrayner/htslib/stargazers","contributors_url":"https://api.github.com/repos/jacrayner/htslib/contributors","subscribers_url":"https://api.github.com/repos/jacrayner/htslib/subscribers","subscription_url":"https://api.github.com/repos/jacrayner/htslib/subscription","commits_url":"https://api.github.com/repos/jacrayner/htslib/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacrayner/htslib/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacrayner/htslib/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacrayner/htslib/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacrayner/htslib/contents/{+path}","compare_url":"https://api.github.com/repos/jacrayner/htslib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacrayner/htslib/merges","archive_url":"https://api.github.com/repos/jacrayner/htslib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacrayner/htslib/downloads","issues_url":"https://api.github.com/repos/jacrayner/htslib/issues{/number}","pulls_url":"https://api.github.com/repos/jacrayner/htslib/pulls{/number}","milestones_url":"https://api.github.com/repos/jacrayner/htslib/milestones{/number}","notifications_url":"https://api.github.com/repos/jacrayner/htslib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacrayner/htslib/labels{/name}","releases_url":"https://api.github.com/repos/jacrayner/htslib/releases{/id}","deployments_url":"https://api.github.com/repos/jacrayner/htslib/deployments","created_at":"2016-06-07T09:55:25Z","updated_at":"2016-06-07T09:55:27Z","pushed_at":"2016-09-03T22:39:08Z","git_url":"git://github.com/jacrayner/htslib.git","ssh_url":"git@github.com:jacrayner/htslib.git","clone_url":"https://github.com/jacrayner/htslib.git","svn_url":"https://github.com/jacrayner/htslib","homepage":"","size":5823,"stargazers_count":0,"watchers_count":0,"language":"C","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":"rebgzip"}},"base":{"label":"samtools:develop","ref":"develop","sha":"bbaab350abeb86e5d55410708496ef7f655b178c","user":{"login":"samtools","id":1518450,"avatar_url":"https://avatars.githubusercontent.com/u/1518450?v=3","gravatar_id":"","url":"https://api.github.com/users/samtools","html_url":"https://github.com/samtools","followers_url":"https://api.github.com/users/samtools/followers","following_url":"https://api.github.com/users/samtools/following{/other_user}","gists_url":"https://api.github.com/users/samtools/gists{/gist_id}","starred_url":"https://api.github.com/users/samtools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtools/subscriptions","organizations_url":"https://api.github.com/users/samtools/orgs","repos_url":"https://api.github.com/users/samtools/repos","events_url":"https://api.github.com/users/samtools/events{/privacy}","received_events_url":"https://api.github.com/users/samtools/received_events","type":"Organization","site_admin":false},"repo":{"id":4339773,"name":"htslib","full_name":"samtools/htslib","owner":{"login":"samtools","id":1518450,"avatar_url":"https://avatars.githubusercontent.com/u/1518450?v=3","gravatar_id":"","url":"https://api.github.com/users/samtools","html_url":"https://github.com/samtools","followers_url":"https://api.github.com/users/samtools/followers","following_url":"https://api.github.com/users/samtools/following{/other_user}","gists_url":"https://api.github.com/users/samtools/gists{/gist_id}","starred_url":"https://api.github.com/users/samtools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtools/subscriptions","organizations_url":"https://api.github.com/users/samtools/orgs","repos_url":"https://api.github.com/users/samtools/repos","events_url":"https://api.github.com/users/samtools/events{/privacy}","received_events_url":"https://api.github.com/users/samtools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/samtools/htslib","description":"C library for high-throughput sequencing data formats","fork":false,"url":"https://api.github.com/repos/samtools/htslib","forks_url":"https://api.github.com/repos/samtools/htslib/forks","keys_url":"https://api.github.com/repos/samtools/htslib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samtools/htslib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samtools/htslib/teams","hooks_url":"https://api.github.com/repos/samtools/htslib/hooks","issue_events_url":"https://api.github.com/repos/samtools/htslib/issues/events{/number}","events_url":"https://api.github.com/repos/samtools/htslib/events","assignees_url":"https://api.github.com/repos/samtools/htslib/assignees{/user}","branches_url":"https://api.github.com/repos/samtools/htslib/branches{/branch}","tags_url":"https://api.github.com/repos/samtools/htslib/tags","blobs_url":"https://api.github.com/repos/samtools/htslib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samtools/htslib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samtools/htslib/git/refs{/sha}","trees_url":"https://api.github.com/repos/samtools/htslib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samtools/htslib/statuses/{sha}","languages_url":"https://api.github.com/repos/samtools/htslib/languages","stargazers_url":"https://api.github.com/repos/samtools/htslib/stargazers","contributors_url":"https://api.github.com/repos/samtools/htslib/contributors","subscribers_url":"https://api.github.com/repos/samtools/htslib/subscribers","subscription_url":"https://api.github.com/repos/samtools/htslib/subscription","commits_url":"https://api.github.com/repos/samtools/htslib/commits{/sha}","git_commits_url":"https://api.github.com/repos/samtools/htslib/git/commits{/sha}","comments_url":"https://api.github.com/repos/samtools/htslib/comments{/number}","issue_comment_url":"https://api.github.com/repos/samtools/htslib/issues/comments{/number}","contents_url":"https://api.github.com/repos/samtools/htslib/contents/{+path}","compare_url":"https://api.github.com/repos/samtools/htslib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samtools/htslib/merges","archive_url":"https://api.github.com/repos/samtools/htslib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samtools/htslib/downloads","issues_url":"https://api.github.com/repos/samtools/htslib/issues{/number}","pulls_url":"https://api.github.com/repos/samtools/htslib/pulls{/number}","milestones_url":"https://api.github.com/repos/samtools/htslib/milestones{/number}","notifications_url":"https://api.github.com/repos/samtools/htslib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samtools/htslib/labels{/name}","releases_url":"https://api.github.com/repos/samtools/htslib/releases{/id}","deployments_url":"https://api.github.com/repos/samtools/htslib/deployments","created_at":"2012-05-15T19:34:48Z","updated_at":"2016-09-02T14:01:28Z","pushed_at":"2016-09-05T09:11:13Z","git_url":"git://github.com/samtools/htslib.git","ssh_url":"git@github.com:samtools/htslib.git","clone_url":"https://github.com/samtools/htslib.git","svn_url":"https://github.com/samtools/htslib","homepage":"","size":8316,"stargazers_count":206,"watchers_count":206,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":149,"mirror_url":null,"open_issues_count":95,"forks":149,"open_issues":95,"watchers":206,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/samtools/htslib/pulls/387"},"html":{"href":"https://github.com/samtools/htslib/pull/387"},"issue":{"href":"https://api.github.com/repos/samtools/htslib/issues/387"},"comments":{"href":"https://api.github.com/repos/samtools/htslib/issues/387/comments"},"review_comments":{"href":"https://api.github.com/repos/samtools/htslib/pulls/387/comments"},"review_comment":{"href":"https://api.github.com/repos/samtools/htslib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/samtools/htslib/pulls/387/commits"},"statuses":{"href":"https://api.github.com/repos/samtools/htslib/statuses/33de3743582189bfe9e02556de5aea48c6c4dff2"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":5,"review_comments":2,"commits":6,"additions":79,"deletions":5,"changed_files":7}}
{"actor":{"display_login":"jkbonfield"}}