scmorph.pp.drop_na#
- scmorph.pp.drop_na(adata, feature_threshold=0.9, cell_threshold=0, inplace=True)#
Drop features with many NAs, then drop cells with any NAs (or infinite values)
- Parameters:
adata (
AnnData) – The (annotated) data matrix of shapen_obs×n_vars. Rows correspond to cells and columns to genes.feature_threshold (
float(default:0.9)) – Features whose fraction of cells with NA is higher than this will be discarded.cell_threshold (
float(default:0)) – Cells whose fraction of features with NA is higher than this will be discarded.inplace (
bool(default:True)) – Whether to drop the features and/or cells inplace.
- Return type:
None|AnnData- Returns:
Depending on
inplace, returns or updatesadatawith the filtered data.