Documentation ¶
Overview ¶
Package featio provides interfaces for feature I/O functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader interface { // Read reads a feat.Feature, returning any error that occurs during the read. Read() (feat.Feature, error) }
Reader is the common feat.Feature reader interface.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner wraps a Reader to provide a convenient loop interface for reading feature data. Successive calls to the Scan method will step through the features of the provided Reader. Scanning stops unrecoverably at EOF or the first error.
Note that it is possible for a Reader to return a valid feature and a non-nil error. So programs that need more control over error handling should use a Reader directly instead.
func NewScannerFromFunc ¶
NewScannerFromFunc returns a Scanner to read features returned by calls to f.
func (*Scanner) Next ¶
Next advances the Scanner past the next feature, which will then be available through the Feat method. It returns false when the scan stops, either by reaching the end of the input or an error. After Next returns false, the Error method will return any error that occurred during scanning, except that if it was io.EOF, Error will return nil.
Directories ¶
Path | Synopsis |
---|---|
Package bed provides types to read and write BED format files according to the UCSC specification.
|
Package bed provides types to read and write BED format files according to the UCSC specification. |
Package gff provides types to read and write version 2 General Feature Format files according to the Sanger Institute specification.
|
Package gff provides types to read and write version 2 General Feature Format files according to the Sanger Institute specification. |