skbio.alignment.Alignment.to_fasta

Alignment.to_fasta()[source]

Return fasta-formatted string representing the SequenceCollection

Note

Deprecated in scikit-bio 0.2.0-dev to_fasta will be removed in scikit-bio 0.3.0. It is replaced by write, which is a more general method for serializing FASTA-formatted files. write supports multiple file formats by taking advantage of scikit-bio’s I/O registry system. See skbio.io for more details.

Returns:

str

A fasta-formatted string representing the SequenceCollection.