GFFRecord#

class biotite.sequence.io.gff.GFFRecord(seqid: str | None, source: str | None, type: str, start: int, end: int, score: float | None = None, strand: Location.Strand | None = None, phase: int | None = None, attributes: dict[str, str | None]=<factory>)[source]#

Bases: object

An entry of a GFF3 file, i.e. one non-comment and non-directive line.

The fields correspond to the 9 columns of GFF3.

Attributes:
seqidstr or None

The ID of the reference sequence. None if the column is undefined (.).

sourcestr or None

Source of the data (e.g. Genbank). None if the column is undefined (.).

typestr

Type of the feature (e.g. CDS).

startint

Start coordinate of feature on the reference sequence.

endint

End coordinate of feature on the reference sequence.

scorefloat or None, optional

Optional score (e.g. an E-value).

strandLocation.Strand or None, optional

Strand of the feature, None if feature is not stranded.

phaseint or None, optional

Reading frame shift, None for non-CDS features.

attributesdict of str -> (str or None), optional

Additional properties of the feature. None values are written as empty values.