Gff3View
Mojo struct 🡭
Gff3View
Section titled “Gff3View”@memory_onlystruct Gff3View[O: Origin[mut=O.mut]]Zero-copy view over one GFF3 data line.
Lifetime: valid only until the next parser read. Call .to_record() to own.
Coordinates are 1-based inclusive.
Parameters
Section titled “Parameters”- O (
Origin[mut=O.mut])
Fields
Section titled “Fields”- start (
UInt64) - end (
UInt64) - score (
Optional[Float64]) - strand (
Optional[Gff3Strand]) - phase (
Optional[UInt8])
Implemented traits
Section titled “Implemented traits”AnyType, Deinitable, Movable
Methods
Section titled “Methods”__init__
Section titled “__init__”fn def __init__(out self, _seqid: Span[UInt8, O], _source: Span[UInt8, O], _type: Span[UInt8, O], start: UInt64, end: UInt64, score: Optional[Float64], strand: Optional[Gff3Strand], phase: Optional[UInt8], _attributes: Span[UInt8, O])Args:
- _seqid (
Span[UInt8, O]) - _source (
Span[UInt8, O]) - _type (
Span[UInt8, O]) - start (
UInt64) - end (
UInt64) - score (
Optional[Float64]) - strand (
Optional[Gff3Strand]) - phase (
Optional[UInt8]) - _attributes (
Span[UInt8, O]) - self (
Self)
Returns:
Self
fn def seqid(self) -> StringSpan[O]Args:
- self (
Self)
Returns:
StringSpan[O]
source
Section titled “source”fn def source(self) -> StringSpan[O]Args:
- self (
Self)
Returns:
StringSpan[O]
feature_type
Section titled “feature_type”fn def feature_type(self) -> StringSpan[O]Args:
- self (
Self)
Returns:
StringSpan[O]
attributes_span
Section titled “attributes_span”fn def attributes_span(self) -> Span[UInt8, O]Args:
- self (
Self)
Returns:
Span[UInt8, O]
start_position
Section titled “start_position”fn def start_position(self) -> PositionArgs:
- self (
Self)
Returns:
Position
end_position
Section titled “end_position”fn def end_position(self) -> PositionArgs:
- self (
Self)
Returns:
Position
interval
Section titled “interval”fn def interval(self) -> IntervalArgs:
- self (
Self)
Returns:
Interval
to_record
Section titled “to_record”fn def to_record(self) -> Gff3RecordMaterialize an owned Gff3Record by parsing attributes from column 9.
Args:
- self (
Self)
Returns:
Gff3Record
Raises: