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.keyattribute, the locations (loc) are taken from the start, end and strand columns and the attributes column is parsed into theFeature.qualattribute. Multiple entries with the sameIDattribute are interpreted as the same feature. Thus, for entries with the sameID, the type and attributes are only parsed once and the locations are aggregated from each entry.- Parameters:
- gff_fileGFFFile
The file tro extract the
Annotationobject from.
- Returns:
- annotationAnnotation
The extracted annotation.