oxbow.read_cram

Contents

oxbow.read_cram#

oxbow.read_cram(src, region=None, index=None, reference=None, reference_index=None, fields=None, tag_defs=None)#

Return Arrow IPC format from a CRAM file.

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

  • fields (str or list[str] or None, optional) – Standard SAM fields to project.

  • tag_defs (list[tuple[str, str]], optional) – Tag definitions. None means no tags column.

Returns:

Arrow IPC

Return type:

bytes