set_annotation#

biotite.sequence.io.gff.set_annotation(gff_file, annotation, seqid=None, source=None, is_stranded=True)[source]#

Write an Annotation object into a GFF3 file.

Each feature will get one entry for each location it has. Feature objects with multiple locations require the ID qualifier in its Feature.qual attribute.

Parameters:
gff_fileGFFFile

The GFF3 file to write into.

annotationAnnotation

The annoation which is written to the GFF3 file.

seqidstr, optional

The content for the seqid column.

sourcestr, optional

The content for the source column.

is_strandedbool, optional

If true, the strand of each feature is taken into account. Otherwise the strand column is filled with ‘.’.