episcanpy.api.pp.filter_features¶
- episcanpy.api.pp.filter_features(data, min_counts=None, min_cells=None, max_counts=None, max_cells=None, inplace=True, copy=False)¶
Filter features based on number of cells or counts.
Keep features that have at least
min_counts
counts or are expressed in at leastmin_cells
cells or have at mostmax_counts
counts or are expressed in at mostmax_cells
cells.Only provide one of the optional parameters
min_counts
,min_cells
,max_counts
,max_cells
per call.- Parameters
- data
An annotated data matrix of shape n_obs × n_vars. Rows correspond to cells and columns to genes.
- min_counts
Minimum number of counts required for a gene to pass filtering.
- min_cells
Minimum number of cells expressed required for a gene to pass filtering.
- max_counts
Maximum number of counts required for a gene to pass filtering.
- max_cells
Maximum number of cells expressed required for a gene to pass filtering.
- inplace
Perform computation inplace or return result.
- Returns
Depending on inplace, returns the following arrays or directly subsets and annotates the data matrix