All preprocessing and quality control functions are located in the epi.pp module. The input for these functions is an anndata.AnnData object.
Visualizing coverage and feature commonness
Use these functions to understand feature distribution and coverage:
epi.pp.commoness_features(adata, **processing_params)epi.pp.coverage_cells(adata, **processing_params)
Filtering cells and features
To remove low-quality data:
epi.pp.filter_cells(adata, min_features=10)epi.pp.filter_features(adata, min_cells=10)
Feature selection
To reduce the feature space to the most variable features:
- Calculate variability:
epi.pl.cal_var(adata) - Select features:
epi.pp.select_var_feature(adata, max_score=0.2, nb_features=50000)
# Quality control examples
epi.pp.commoness_features(adata, **processing_params)
epi.pp.coverage_cells(adata, **processing_params)
# Filtering
epi.pp.filter_cells(adata, min_features=10)
epi.pp.filter_features(adata, min_cells=10)
# Feature selection
epi.pl.cal_var(adata)
epi.pp.select_var_feature(adata, max_score=0.2, nb_features=50000)