{"action":"created","issue":{"url":"https://api.github.com/repos/samtools/hts-specs/issues/137","repository_url":"https://api.github.com/repos/samtools/hts-specs","labels_url":"https://api.github.com/repos/samtools/hts-specs/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/samtools/hts-specs/issues/137/comments","events_url":"https://api.github.com/repos/samtools/hts-specs/issues/137/events","html_url":"https://github.com/samtools/hts-specs/issues/137","id":141029822,"number":137,"title":".crai index improvements","user":{"login":"jkbonfield","id":2210525,"avatar_url":"https://avatars0.githubusercontent.com/u/2210525?v=4","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-03-15T16:36:53Z","updated_at":"2017-11-06T09:35:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This is just a list of things that could be improved, for whenever we next revise the format. (So we don't forget any).  I'm not suggesting an immediate update, but to gather ideas in one place.\n- Magic number with version string.\n- Add number of reads / bases as columns.  This will make very approximate coverage plots trivial as well as improve tools like samtools idxstats so they work on both BAM and CRAM.  What else in idxstats needs replicating?\n- A generation UUID.  If coupled with an identical UUID in the SAM header then we can use this to spot cases where the CRAM file has been updated without rebuilding the index.  (We want to add this same feature to .BAI and .CSI too.)\n- Check the utility of container size column.  I think currently it is the number of remaining bytes after decoding the container header (and perhaps compression header?).  More useful for random slicing would simply by the size of the entire container.\n- Consider whether gzipped text is the right format.  We could provide for random access on compressed index by self-indexing the index, but that's a far larger change.\n"},"comment":{"url":"https://api.github.com/repos/samtools/hts-specs/issues/comments/342093962","html_url":"https://github.com/samtools/hts-specs/issues/137#issuecomment-342093962","issue_url":"https://api.github.com/repos/samtools/hts-specs/issues/137","id":342093962,"user":{"login":"jkbonfield","id":2210525,"avatar_url":"https://avatars0.githubusercontent.com/u/2210525?v=4","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},"created_at":"2017-11-06T09:35:49Z","updated_at":"2017-11-06T09:35:49Z","author_association":"CONTRIBUTOR","body":"For completeness sake, so we don't forget at least, also consider adding the \"missing\" meta-information to CRAM indices. Re: https://github.com/pysam-developers/pysam/issues/556.\r\n\r\nI say \"missing\" because at the time of writing CRAM those extra fields in BAI were non-standard and undocumented anyway.\r\n\r\n(NB: No planned time line of this.)"}}
{"actor":{"display_login":"jkbonfield"}}