Documentation
¶
Overview ¶
Package fai implements FAI fasta sequence file index handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNonUnique = errors.New("non-unique record name")
Functions ¶
Types ¶
type File ¶
type File struct {
Index
// contains filtered or unexported fields
}
File is a sequence file with an FAI index.
func NewFile ¶
NewFile returns the sequence file for the given reader and associates it with the specified index.
type Index ¶
Index is an FAI index.
type Record ¶
type Record struct {
// Name is the name of the sequence.
Name string
// Length is the length of the sequence.
Length int
// Start is the starting seek offset of
// the sequence.
Start int64
// BasesPerLine is the number of sequences
// bases per line.
BasesPerLine int
// BytesPerLine is the number of bytes
// used to represent each line.
BytesPerLine int
}
Record is a single FAI index record.
Click to show internal directories.
Click to hide internal directories.