A simple example to link tabix C library into GO language.
- download tabix C source code
- make dynamic libtabix.so.1 [ or make to get libtabix.a]
- cp libtabix.so.1 to your LD_LIBRARY_PATH [ or use the static version libtabix.a ]
- mv query_tabix_example.go query_tabix.go query_tabix_example_static.go into tabix directory which contains example.gtf.gz and example.gtf.gz.tbi and libtabix.a
- go run query_tabix_example.go [ or go run query_tabix_example_static.go ]
- go run query_tabix.go [file.bed] [file.gz]
- query_tabix_bed6.go are designed for query motifs and coordinates translate to query region.