napari_prism.pp.percentile#
- napari_prism.pp.percentile(adata, percentile=95, layer=None, copy=True)#
Normalise data to the 95th or 99th percentile. Axis = 0, or per column. Wraps
np.percentile.- Parameters:
adata (
AnnData) – Anndata object.percentile (
float(default:95)) – Percentile to normalise to. Defaults to 95.layer (
Optional[str] (default:None)) – Expression layer to apply percentile transformation. IfNone,Xis transformed.copy (
bool(default:True)) – Return a copy instead of writing inplace.
- Return type:
- Returns:
AnnData object with percentile transformation applied. If
copyis False, modifies the AnnData object in place and returns None.