snapatac2.AnnData.subset#

AnnData.subset(obs_indices=None, var_indices=None, out=None, backend=None)#

Subsetting the AnnData object.

Parameters:
  • obs_indices – obs indices

  • var_indices – var indices

  • out (Path | None) – File name of the output .h5ad file. If provided, the result will be saved to a new file and the original AnnData object remains unchanged.

  • backend (str | None) –

Return type:

Optional[AnnData]