| 1 | package tabixscip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/ |
| 2 | |
| 3 | import ( |
| 4 | "bytesscip-go gomod github.com/golang/go/src go1.19 bytes/" |
| 5 | "testingscip-go gomod github.com/golang/go/src go1.19 testing/" |
| 6 | |
| 7 | "gopkg.in/check.v1scip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/" |
| 8 | ) |
| 9 | |
| 10 | func Testscip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/Test().(t *testingscip-go gomod github.com/golang/go/src go1.19 testing/.Tscip-go gomod github.com/golang/go/src go1.19 testing/T#) { checkscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/.TestingTscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/TestingT().(t) } |
| 11 | |
| 12 | type Sscip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/S# struct{} |
| 13 | |
| 14 | var _ = checkscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/.Suitescip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/Suite().(&Sscip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/S#{}) |
| 15 | |
| 16 | // Generated by `echo $'chr1\t1\t100' | bgzip -c > t.bed.gz; tabix t.bed.gz'. |
| 17 | // See https://github.com/biogo/hts/issues/19. |
| 18 | var issue19TestDatascip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/issue19TestData. = []byte{ |
| 19 | 0x54, 0x42, 0x49, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, // |TBI.............| |
| 20 | 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // |........#.......| |
| 21 | 0x05, 0x00, 0x00, 0x00, 0x63, 0x68, 0x72, 0x31, 0x00, 0x02, 0x00, 0x00, 0x00, 0x49, 0x12, 0x00, // |....chr1.....I..| |
| 22 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x25, // |...............%| |
| 23 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x4a, 0x92, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // |.....J..........| |
| 24 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, // |.......%........| |
| 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, // |................| |
| 26 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // |................| |
| 27 | 0x00, /* */ // |.| |
| 28 | } |
| 29 | |
| 30 | func (s *Sscip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/S#) TestIssue19scip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/S#TestIssue19().(c *checkscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/C#) { |
| 31 | idx, err := ReadFromscip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/ReadFrom().(bytesscip-go gomod github.com/golang/go/src go1.19 bytes/.NewReaderscip-go gomod github.com/golang/go/src go1.19 bytes/NewReader().(issue19TestDatascip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/issue19TestData.)) |
| 32 | c.Assertscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/C#Assert().(err, checkscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/Equals., nil) |
| 33 | |
| 34 | chunks, err := idx.Chunksscip-go gomod github.com/biogo/hts . `github.com/biogo/hts/tabix`/Index#Chunks().("chr1", 1, 19999999) |
| 35 | c.Assertscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/C#Assert().(err, checkscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/Equals., nil) |
| 36 | c.Checkscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/C#Check().(len(chunks), checkscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/.Notscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/Not().(checkscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 41f04d3bba15 `gopkg.in/check.v1`/Equals.), 0) |
| 37 | } |