snapatac2.AnnData.subset#

AnnData.subset(obs_indices, var_indices, out)#

Subsetting the AnnData object.

Parameters
  • obs_indices – obs indices

  • var_indices – var indices

  • out (Path) – 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.

Return type

Optional[AnnData]