omicverse.io.read_10x_h5

omicverse.io.read_10x_h5(filename, *, genome=None, gex_only=True, backup_url=None)[source]

Read a 10x Genomics HDF5 matrix file.

Parameters:
  • filename (str or pathlib.Path) – Path to the 10x .h5 matrix file.

  • genome (str or None, default=None) – Genome identifier to keep for legacy multi-genome files. Ignored for single-genome inputs.

  • gex_only (bool, default=True) – If True, keep only features with feature_types == 'Gene Expression'.

  • backup_url (str or None, default=None) – Reserved parameter for API compatibility. Remote fallback is not implemented.

Returns:

AnnData object with barcodes in obs_names and features in var_names.

Return type:

anndata.AnnData