get_alignment#
- biotite.sequence.io.fasta.get_alignment(fasta_file, additional_gap_chars=('_',), seq_type=None)[source]#
Get an alignment from a
FastaFileinstance.- Parameters:
- fasta_fileFastaFile
The
FastaFileto be accessed.- additional_gap_charsstr, optional
The characters to be treated as gaps.
- seq_typetype[Sequence], optional
The
Sequencesubclass contained in the file. If not set, the type is automatically inferred asProteinSequenceorNucleotideSequence. For large sequence data it is recommended to set this parameter.
- Returns:
- alignmentAlignment
The alignment from the
FastaFile.