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:
objectAn 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.
Noneif the column is undefined (.).- sourcestr or None
Source of the data (e.g.
Genbank).Noneif 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,
Noneif feature is not stranded.- phaseint or None, optional
Reading frame shift,
Nonefor non-CDS features.- attributesdict of str -> (str or None), optional
Additional properties of the feature.
Nonevalues are written as empty values.