Skip to content

Gff3Record

Mojo struct 🡭

@memory_only
struct Gff3Record

Single GFF3 feature (owned). Coordinates 1-based inclusive.

  • Seqid (BString)
  • Source (BString)
  • Type (BString)
  • Start (UInt64)
  • End (UInt64)
  • Score (Optional[Float64])
  • Strand (Optional[Gff3Strand])
  • Phase (Optional[UInt8])
  • Attributes (Gff3Attributes)

AnyType, Copyable, Deinitable, Movable, Writable

fn def seqid(ref self) -> String

Args:

  • self (Self)

Returns:

String

fn def source(ref self) -> String

Args:

  • self (Self)

Returns:

String

fn def feature_type(ref self) -> String

Args:

  • self (Self)

Returns:

String

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 get_attribute(ref self, key: String) -> Optional[BString]

Args:

  • self (Self)
  • key (String)

Returns:

Optional[BString]

fn def get_all_attributes(ref self, key: String) -> List[BString]

Return all values for key (for multi-value GFF3 attributes like Parent).

Args:

  • self (Self)
  • key (String)

Returns:

List[BString]

fn def write_to[w: Writer](ref self, mut writer: w)

Write one tab-delimited GFF3 line.

Parameters:

  • w (Writer)

Args:

  • self (Self)
  • writer (w)