Skip to content

Gff3View

Mojo struct 🡭

@memory_only
struct 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.

  • O (Origin[mut=O.mut])
  • start (UInt64)
  • end (UInt64)
  • score (Optional[Float64])
  • strand (Optional[Gff3Strand])
  • phase (Optional[UInt8])

AnyType, Deinitable, Movable

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]

fn def source(self) -> StringSpan[O]

Args:

  • self (Self)

Returns:

StringSpan[O]

fn def feature_type(self) -> StringSpan[O]

Args:

  • self (Self)

Returns:

StringSpan[O]

fn def attributes_span(self) -> Span[UInt8, O]

Args:

  • self (Self)

Returns:

Span[UInt8, O]

fn def start_position(self) -> Position

Args:

  • self (Self)

Returns:

Position

fn def end_position(self) -> Position

Args:

  • self (Self)

Returns:

Position

fn def interval(self) -> Interval

Args:

  • self (Self)

Returns:

Interval

fn def to_record(self) -> Gff3Record

Materialize an owned Gff3Record by parsing attributes from column 9.

Args:

  • self (Self)

Returns:

Gff3Record

Raises: