mantispy.pp.filter_features#
- mantispy.pp.filter_features(adata, drop_nan=True, min_variance=0.0, blocklist='default', copy=False)#
Drop all-NaN, low-variance and blocklisted features.
- Parameters:
adata (
AnnData) – Object to filter.drop_nan (
bool(default:True)) – Drop features that are missing everywhere.min_variance (
float(default:0.0)) – Drop features whose variance is at or below this, asfeature_select()and sklearn’sVarianceThresholddo.0disables the check.blocklist (
str|Sequence[str] |None(default:'default')) –"default"for the bundled CellProfiler blocklist, an explicit list of names, orNoneto skip. Matched against the current names and againstvar["original_name"], so it works either side ofstandardize_feature_names().copy (
bool(default:False)) – Return a filtered copy instead of filtering in place.
- Return type:
- Returns:
None, or the filtered copy. Subsetsvarto the surviving features, and reports how many were dropped.