# bgzf

Dark Mode

Search:
Group by:

# Imports

hts_concat, utils

# Types

    BGZ = ref object
      cptr*: ptr BGZF

# Procs

    proc close(b: BGZ): int {...}{.discardable, raises: [], tags: [].}

  close the filehandle

    proc write(b: BGZ; line: string): int64 {...}{.inline, raises: [], tags: [].}

  write a string to the file

    proc write_line(b: BGZ; line: string): int {...}{.inline, raises: [], tags: [].}

  write a string to the file and add a newline.

    proc set_threads(b: BGZ; threads: int) {...}{.raises: [], tags: [].}

  set the number of de/compression threads

    proc read_line(b: BGZ; line: ptr kstring_t): int {...}{.inline, raises: [], tags: [].}

  read a line into the kstring t.

    proc flush(b: BGZ): int {...}{.raises: [], tags: [].}

    proc tell(b: BGZ): uint64 {...}{.inline, raises: [], tags: [].}

    proc open(b: var BGZ; path: string; mode: string) {...}{.raises: [IOError], tags: [].}

  open a BGZF file

# Iterators

    iterator items(b: BGZ): string {...}{.raises: [IOError], tags: [].}

  iterates over the file line by line