calour.experiment.Experiment.save_fasta

Experiment.save_fasta(f, seqs=None)[source]

Save a list of sequences to fasta.

Use taxonomy information if available, otherwise just use sequence as header.

Parameters:
  • f (str) – the filename to save to
  • seqs (list of str sequences ('ACGT') or None, optional) – None (default) to save all sequences in exp, or list of sequences to only save these sequences. Note: sequences not in exp will not be saved