biotite.sequence.io.gff.get_annotation

biotite.sequence.io.gff.get_annotation(gff_file)[source]

Parse a GFF3 file into an Annotation.

The type column is used as the Feature.key attribute, the locations (loc) are taken from the start, end and strand columns and the attributes column is parsed into the Feature.qual attribute. Multiple entries with the same ID attribute are interpreted as the same feature. Thus, for entries with the same ID, the type and attributes are only parsed once and the locations are aggregated from each entry.

Parameters
gff_fileGFFFile

The file tro extract the Annotation object from.

Returns
annotationAnnotation

The extracted annotation.