Documentation
¶
Overview ¶
Package seqio is a generic namespace shared by all biological sequence input and output handlers. This package contain a very barebone and simple Fasta format sequence file parser. Currently, it parses and returns the Id(header) and sequence. This is mostly working concept, however could be easily extended in future. Example:
for r := range seqio.ParseFASTA("sequences.fa") {
result.MonadFold(r,
func(err error) any { /* handle malformed record / I/O */ },
func(rec seqio.Fasta) any { /* use rec */ },
)
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFASTA ¶
ParseFASTA opens a FASTA file and returns a SeqResult[Fasta] — a lazy stream where each element is Right(Fasta) or Left(error). Per-record errors emit Left and continue; the file is deterministically closed when iteration finishes (EOF, error, or break).
Types ¶
Click to show internal directories.
Click to hide internal directories.