- spac.data_utils.subtract_min_per_region(adata, annotation, layer, min_quantile=0.01)[source]
Substract the minimum quantile of every marker per region.
- Parameters:
adata (anndata.AnnData) – The AnnData object.
annotation (str) – The name of the annotation in adata to define batches.
min_quantile (float) – The minimum quantile to rescale to zero.
layer (str) – The name of the new layer to add to the AnnData object.