oxbow.from_bigwig

Contents

oxbow.from_bigwig#

oxbow.from_bigwig(source: str | Path | Callable[[], IO[bytes] | str], *, fields: Literal['*'] | list[str] | None = '*', regions: str | list[str] | None = None, batch_size: int = 131072) BigWigFile#

Create a BigWig file data source.

Parameters:
  • source (str, pathlib.Path, or Callable) – The URI or path to the BigWig file, or a callable that opens the file as a file-like object.

  • fields (list[str], optional) – Specific fields to project as columns. By default, all available fields are included.

  • regions (str | list[str], optional) – One or more genomic regions to query. Only applicable if an associated index file is available.

  • batch_size (int, optional [default: 131072]) – The number of records to read in each batch.

Returns:

A data source object representing the BigWig file.

Return type:

BigWigFile

See also

from_bed

Create a BED file data source.

from_bigbed

Create a BigBed file data source.

bbi.BigWigFile.zoom()

Create a data source for a zoom level.