Documentation ¶
Overview ¶
Package seqio provides interfaces for sequence 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 seq.Sequence, returning the sequence and any error that // occurred during the read. Read() (seq.Sequence, error) }
Reader is the common seq.Sequence reader interface.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner wraps a Reader to provide a convenient loop interface for reading sequence data. Successive calls to the Scan method will step through the sequences 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 sequence 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 sequences returned by calls to f.
func (*Scanner) Next ¶
Next advances the Scanner past the next sequence, which will then be available through the Seq 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 alignio for reading and writing multiple sequence alignment files
|
Package alignio for reading and writing multiple sequence alignment files |
Package fai implement FAI fasta sequence file index handling.
|
Package fai implement FAI fasta sequence file index handling. |
Package fasta provides types to read and write FASTA format files.
|
Package fasta provides types to read and write FASTA format files. |
Package fastq provides types to read and write FASTQ format files.
|
Package fastq provides types to read and write FASTQ format files. |