Skip to content

GtfRecord

Mojo struct 🡭

@memory_only
struct GtfRecord

Single GTF2.2 feature (owned). Coordinates 1-based inclusive.

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

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 write_to[w: Writer](ref self, mut writer: w)

Write one tab-delimited GTF line.

Parameters:

  • w (Writer)

Args:

  • self (Self)
  • writer (w)