bpcells.experimental.DirMatrix.from_h5ad#

classmethod DirMatrix.from_h5ad(h5ad_path: str, out_dir: str, group: str = 'X') DirMatrix[source]#

Create a DirMatrix from an h5ad file. Truncates floating point values to integers

Parameters:
  • h5ad_path (str) – Path to h5ad file

  • out_dir (str) – Output path for DirMatrix

  • group (str, optional) – HDF5 group to read matrix from. Defaults to “X”.

Returns:

View of the matrix written to disk

Return type:

DirMatrix