mantispy.pp.standardize_feature_names#
- mantispy.pp.standardize_feature_names(adata, target='cp_measure', copy=False)#
Rename features to
targetgrammar, keeping the original invar.CellProfiler feature names differ between versions, so renaming makes a dataset from an older pipeline comparable with one from a newer pipeline.
- Parameters:
- Return type:
- Returns:
None, or the modified copy. Rewritesvar_namesand writesvar["original_name"]on the first call, never overwriting it afterwards, so the incoming names survive repeated calls.- Raises:
ValueError – If
targetis not supported, or renaming would give two features the same name (for example two Zernike orders).