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