Skip to content

BedLinePolicy

Mojo struct 🡭

@register_passable_trivial
struct BedLinePolicy

Line policy for BED files.

Skips:

  • Blank lines
  • Lines starting with ’#’
  • UCSC ‘track …’ header lines
  • UCSC ‘browser …’ directive lines

All other lines are yielded to the parser.

AnyType, Copyable, Deinitable, ImplicitlyCopyable, LinePolicy, Movable, RegisterPassable, TrivialRegisterPassable

fn def classify(self, line: Span[UInt8]) -> LineAction

Args:

  • self (Self)
  • line (Span[UInt8])

Returns:

LineAction