Module seq_io::fasta[][src]

Efficient FASTA reading and writing

Structs

OwnedRecord

A FASTA record that ownes its data (requiring two allocations)

Position
Reader

Parser for FASTA files.

RecordSet

Set of FASTA records that owns it's buffer and knows the positions of each record.

RecordSetIter
RecordsIntoIter

Iterator of OwnedRecord that owns the underlying reader

RecordsIter

Borrowed iterator of OwnedRecord

RefRecord

A FASTA record that borrows data from a buffer.

SeqLines

Enums

Error

Traits

Record

FASTA record trait implemented by both RefRecord and OwnedRecord

Functions

write_head

Writes only the sequence header.

write_id_desc

Writes only the sequence header given ID and description parts.

write_parts

Writes data to the FASTA format. ID and description parts of the header are supplied separately instead of a whole header line.

write_seq

Writes only the sequence line.

write_seq_iter

Writes the sequence line from an iterator (such as SeqLines)

write_to

Writes data (not necessarily stored in a Record instance) to the FASTA format.

write_wrap

Writes data to the FASTA format. Wraps the sequence to produce multi-line FASTA with a maximum width specified by the wrap parameter.

write_wrap_seq

Writes the sequence line, and wraps the output to a maximum width specified by wrap.

write_wrap_seq_iter

Writes the sequence line from an iterator (such as SeqLines) and wraps the output to a maximum width specified by wrap.