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, ImplicitlyDestructible, Movable, Writable

def seqid(ref self) -> String

Args:

  • self (Self)

Returns:

String

def source(ref self) -> String

Args:

  • self (Self)

Returns:

String

def feature_type(ref self) -> String

Args:

  • self (Self)

Returns:

String

def start_position(self) -> Position

Args:

  • self (Self)

Returns:

Position

def end_position(self) -> Position

Args:

  • self (Self)

Returns:

Position

def interval(self) -> Interval

Args:

  • self (Self)

Returns:

Interval

def get_attribute(ref self, key: String) -> Optional[BString]

Args:

  • self (Self)
  • key (String)

Returns:

Optional

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

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

Write one tab-delimited GFF3 line.

Parameters:

  • w (Writer)

Args:

  • self (Self)
  • writer (w)