Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BufferSize = 65536 // os.Getpagesize()
BufferSize is size of reading and writing buffer
View Source
var ErrBrokenFile = errors.New("seed position data: broken file")
ErrBrokenFile means the file is not complete.
View Source
var ErrInvalidFileFormat = errors.New("seed position data: invalid binary format")
ErrInvalidFileFormat means invalid file format.
View Source
var ErrVersionMismatch = errors.New("seed position data: version mismatch")
ErrVersionMismatch means version mismatch between files and program
View Source
var Magic = [8]byte{'.', 's', 'e', 'e', 'd', 'l', 'o', 'c'}
Magic number for checking file format
View Source
var MagicIdx = [8]byte{'.', 'l', 'o', 'c', 'i', 'd', 'e', 'x'}
Magic number for the index file
View Source
var MainVersion uint8 = 0
MainVersion is use for checking compatibility
View Source
var MinorVersion uint8 = 1
MinorVersion is less important
View Source
var PositionsIndexFileExt = ".idx"
PositionsIndexFileExt is the file extension of seed position index file.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is for reading the seed position of a genome
Click to show internal directories.
Click to hide internal directories.