// ToFasta writes the sequence alignment as a string in the FASTA format.
ToFasta writes the sequence alignment as a string in the FASTA format.
// ToFasta writes the sequence alignment as a string in the FASTA format .
func (a Alignment) ToFasta() string {
	var buff bytes.Buffer
	for _, s := range a {
		if len(s.Description()) > 0 {
			buff.WriteString(fmt.Sprintf(">%s %s\n", s.ID(), s.Description()))
		} else {
			buff.WriteString(fmt.Sprintf(">%s\n", s.ID()))
		}
		buff.WriteString(fmt.Sprintf("%s\n", s.Sequence()))
	}
	return buff.String()
}
func ( a Alignment ) ToFasta ( ) string { var buff bytes . Buffer for _ , s := range a { if len ( s . Description ( ) ) > 0 { buff . WriteString ( fmt . Sprintf ( " \n " , s . ID ( ) , s . Description ( ) ) ) } else { buff . WriteString ( fmt . Sprintf ( " \n " , s . ID ( ) ) ) } buff . WriteString ( fmt . Sprintf ( " \n " , s . Sequence ( ) ) ) } return buff . String ( ) }
ToFasta writes the sequence alignment as a string in the FASTA format.
ToFasta writes the sequence alignment as a string in the FASTA format .
// Append each Sequence in Alignment