sfaira.data.StoreSingleFeatureSpace.subset

StoreSingleFeatureSpace.subset(attr_key, values: Union[None, str, List[str]] = None, excluded_values: Union[None, str, List[str]] = None, verbose: int = 1)

Subset list of adata objects based on cell-wise properties.

Subsetting is done based on index vectors, the objects remain untouched.

Parameters
  • attr_key

    Property to subset by. Options:

    • ”assay_differentiation” points to self.assay_differentiation_obs_key

    • ”assay_sc” points to self.assay_sc_obs_key

    • ”assay_type_differentiation” points to self.assay_type_differentiation_obs_key

    • ”cell_line” points to self.cell_line

    • ”cell_type” points to self.cell_type_obs_key

    • ”developmental_stage” points to self.developmental_stage_obs_key

    • ”ethnicity” points to self.ethnicity_obs_key

    • ”organ” points to self.organ_obs_key

    • ”organism” points to self.organism_obs_key

    • ”sample_source” points to self.sample_source_obs_key

    • ”sex” points to self.sex_obs_key

    • ”state_exact” points to self.state_exact_obs_key

  • values – Classes to overlap to. Supply either values or excluded_values.

  • excluded_values – Classes to exclude from match list. Supply either values or excluded_values.

  • verbose – If >1 print warning message if store is empty after subsetting