Skip to content

parse gtf attributes

Mojo function 🡭

def parse_gtf_attributes(span: Span[UInt8, span.origin]) -> GtfAttributes

Parse GTF column 9: semicolon-separated ‘tag “value”’ pairs.

Extracts gene_id and transcript_id as first-class fields. All other attributes go into _extras.

Args:

  • span (Span)

Returns:

GtfAttributes

Raises: