set_sequences#
- biotite.sequence.io.fasta.set_sequences(fasta_file, sequence_dict, as_rna=False)[source]#
Set sequences in a
FastaFileinstance from a dictionary.- Parameters:
- fasta_fileFastaFile
The
FastaFileto be accessed.- sequence_dictdict
A dictionary containing the sequences to be set. Header are keys,
Sequenceinstances are values.- as_rnabool, optional
If set to true,
'T'will be replaced by'U', if aNucleotideSequencewas given.
- Raises:
- ValueError
If the sequences alphabets uses symbols other than single characters.