biotite.sequence.io.fasta.set_sequence

biotite.sequence.io.fasta.set_sequence(fasta_file, sequence, header=None)[source]

Set a sequence in a FastaFile instance.

Parameters
fasta_fileFastaFile

The FastaFile to be accessed.

sequenceSequence

The sequence to be set.

headerstr, optional

The header for the sequence. Default is ‘sequence’.

Raises
ValueError

If the sequence’s alphabet uses symbols other than single letters.