episcanpy.api.pp.select_var_feature

episcanpy.api.pp.select_var_feature(adata, min_score=0.5, nb_features=None, show=True, copy=False, save=None)

This function computes a variability score to rank the most variable features across all cells. Then it selects the most variable features according to either a specified number of features (nb_features) or a maximum variance score (max_score).

Parameters
adata : adata object

min_score : minimum threshold variability score to retain features,

1 is the score of the most variable features and 0.5 is the score of the least variable features. : where

nb_features : default value is None, if specify it will select a the top most variable features.

the nb_features is larger than the total number of feature : if

filters based on the max_score argument : it

show : default value True, it will plot the distribution of var.

copy : return a new adata object if copy == True.

Returns

Depending on copy, returns a new AnnData object or overwrite the input