Documentation ¶
Index ¶
- Variables
- func CreateBamIndex(bamFile string) (err error)
- func CreateColumnIndex(c *column, column int, ofile string) (count int64, format string, err error)
- func CreateSubsetIndex(s *subset, oifile string, ifile string, iformat string, ilength int64) (count int64, size int64, err error)
- func CreateSubsetNodeIndexes(s *subset, cofile string, ofile string, ifile string, iformat string, ...) (coCount int64, oCount int64, oSize int64, err error)
- func Has(t string) bool
- func LoadBamIndex(bamFile string) (err error)
- func NewColumnIndexer(f *os.File) column
- func NewSubsetIndexer(f *os.File) subset
- func NewVirtual(t string, p string, s int64, c int64) *vIndex
- func SizePart(part string, v *vIndex) (pos int64, length int64, err error)
- func UnLoadBamIndex(bamFile string) (err error)
- type Idx
- func (i *Idx) GetLength() int64
- func (i *Idx) Part(part string, idxFilePath string, idxLength int64) (pos int64, length int64, err error)
- func (i *Idx) Range(part string, idxFilePath string, idxLength int64) (recs [][]int64, err error)
- func (i *Idx) Set(inter map[string]interface{})
- func (i *Idx) Type() string
- type Index
- type Indexer
- func NewBaiIndexer(f *os.File) Indexer
- func NewChunkRecordIndexer(f *os.File, nType string, snFormat string, snRecordIndexPath string) Indexer
- func NewLineIndexer(f *os.File, nType string, snFormat string, snIndexPath string) Indexer
- func NewRecordIndexer(f *os.File, nType string, snFormat string, snIndexPath string) Indexer
- func NewSizeIndexer(f *os.File, nType string, snFormat string, snIndexPath string) Indexer
Constants ¶
This section is empty.
Variables ¶
var ( Indexers = map[string]indexerFunc{ "chunkrecord": NewChunkRecordIndexer, "line": NewLineIndexer, "record": NewRecordIndexer, "size": NewSizeIndexer, } )
Functions ¶
func CreateBamIndex ¶
func CreateColumnIndex ¶
func CreateSubsetIndex ¶
func CreateSubsetIndex(s *subset, oifile string, ifile string, iformat string, ilength int64) (count int64, size int64, err error)
We anticipate that the input index format (iformat) will be either "array" or "matrix" and for subset indexes, the output format should be the same as the input format. Only input index format type "array" is currently supported.
func CreateSubsetNodeIndexes ¶ added in v0.8.13
func CreateSubsetNodeIndexes(s *subset, cofile string, ofile string, ifile string, iformat string, ilength int64) (coCount int64, oCount int64, oSize int64, err error)
We anticipate that the input index format (iformat) will be either "array" or "matrix" and for subset nodes, the output index format should be the same as the input format. Only input index format type "array" is currently supported.
func LoadBamIndex ¶
func NewColumnIndexer ¶
func NewSubsetIndexer ¶
func UnLoadBamIndex ¶
Types ¶
type Indexer ¶
func NewBaiIndexer ¶
func NewChunkRecordIndexer ¶
func NewChunkRecordIndexer(f *os.File, nType string, snFormat string, snRecordIndexPath string) Indexer
We pass our index instantiation function the data file that we will be creating an index to, the node type, and the format of the subset node index (if the node is of type subset, otherwise snFomrat == "")