Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Index stats estimation #1167
This is a PR to address #1092
It performs a simplified stats estimation that is based on getting feature counts from the index. Then it estimates feature density simply as feature count divided by length of chromosome. CSI, BAI, and Tabix all have this ability. CRAI index actually does not have feature count in its index.
The command samtools idxstats can demonstrate this function and outputs feature counts, and on CRAI it does a slower calculation that is not implemented in this PR, so CRAM falls back to global stats estimation samtools/samtools#832
Might be worth ignoring whitespace using https://github.com/GMOD/jbrowse/compare/dev...index_stats_estimation?w=1 on this PR as some of the whitespace in these files was wonky