Пример #1
0
// WriteFasta writes a multiple sequence alignment to the output in aligned
// FASTA format. Aligned FASTA format uses upper case characters to indicate
// matches, lower case characters to indicate insertions, and '-' characters to
// indicate deletions/insertions.
func WriteFasta(w io.Writer, msa seq.MSA) error {
	formatter := func(row int) seq.Sequence {
		return msa.GetFasta(row)
	}
	return write(w, msa, formatter)
}