get_annotated_sequence#

biotite.sequence.io.genbank.get_annotated_sequence(gb_file: GenBankFile, format: Literal['gb', 'gp'] = 'gb', include_only: Iterable[str] | None = None) AnnotatedSequence[source]#

Get an annotated sequence by combining the ANNOTATION and ORIGIN fields of a GenBank file.

Parameters:
gb_fileGenBankFile

The GenBank file to read the fields from.

format{‘gb’, ‘gp’}

Whether the file is a GenBank or GenPept file.

include_onlyiterable object of str, optional

List of names of feature keys, which should included in the annotation. By default all features are included.

Returns:
annot_seqAnnotatedSequence

The annotated sequence.