/
View dependency graph
Depends on
- dh-golang (dh-golang)
- golang-defaults (golang-any)
- golang-github-biogo-hts (golang-github-biogo-hts-dev)
- golang-github-brentp-irelate (golang-github-brentp-irelate-dev)
- golang-github-brentp-vcfgo (golang-github-brentp-vcfgo-dev)
- golang-github-pkg-errors (golang-github-pkg-errors-dev)
- htslib (tabix)
- debhelper-compat, golang-gopkg-check.v1-dev
README (full)
bix
Tabix files in go.
Bixis a pure go tabix reader. Tabix has a minimum resolution of 16K bases. So, for dense annotations
like ExAC, repeated queries will have to re-parse the same intervals. To mitigate this, Bix caches
all annotations for the blocks from each query and re-uses them for later querires to the same block.
In practice, this results in 10X-100X speedup for any type of data.
tbx, err := bix.New(f)
// Query returns an io.Reader
ph := true // print header ?
rdr, err := tbx.Query(chrom, start, end, ph)
buf := bufio.NewReader(rdr)
for {
line, err := bufr.ReadString('\n')
if err == io.EOF {
break
}
fmt.Println(line)
}
// or
intervals := tbx.Get(chrom, start, end)
where intervals will be either a vcfgo.Variant or an Interval object with a Chrom(), Start(), and End() method.
| dir | debian/ |
| dir | main/ |
| dir | tests/ |
| file | LICENSE |
| file | README.md |
| file | bix.go |
| file | csi.go |
| file | csi_test.go |
| file | extract_end_test.go |
