oxbow.read_bed

Contents

oxbow.read_bed#

oxbow.read_bed(src, bed_schema, region=None, index=None, fields=None, compressed=False)#

Return Arrow IPC format from a BED file.

Parameters:
  • src (str or file-like) – The path to the source file or a file-like object.

  • bed_schema (str, list[tuple[str, str]], or dict[str, str]) – The BED schema.

  • fields (list[str], optional) – Names of the fields to project.

  • compressed (bool, optional [default: False]) – Whether the source is BGZF-compressed.

Returns:

Arrow IPC

Return type:

bytes