set_sequence
#
- biotite.sequence.io.fasta.set_sequence(fasta_file, sequence, header=None, as_rna=False)[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'
.- as_rnabool, optional
If set to true,
'T'
will be replaced by'U'
, if aNucleotideSequence
was given.
- Raises:
- ValueError
If the sequence’s alphabet uses symbols other than single characters.
Gallery#
Comparative genome assembly