Documentation ¶
Overview ¶
Package to read and write FASTA format files
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Regex = regexp.MustCompile(`^[\n\r]*>\S+[\S\t ]*[\n\r]+[A-Za-z\- ]+[\n\r]+`)
)
Functions ¶
func NewReader ¶
func NewReader(f file.SectionReader) seq.ReadRewinder
Returns a new fasta format reader using f.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Fasta sequence format reader type.
func (*Reader) GetReadOffset ¶
Read a single sequence and return read offset for indexing.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Fasta sequence format writer type.
func NewWriter ¶
func NewWriter(f io.WriteCloser, width int) *Writer
Returns a new fasta format writer using f.
func NewWriterName ¶
Returns a new fasta format writer using a filename, truncating any existing file. If appending is required use NewWriter and os.OpenFile.
Click to show internal directories.
Click to hide internal directories.