cellink.pp.log_transform#
- cellink.pp.log_transform(adata, *, base=2, inplace=True, copy=True)#
Apply log transformation to protein abundance values.
This function applies a log transformation to the abundance values, which can help stabilize variance and reduce skewness in the data.
- Parameters:
adata (
AnnData) – The annotated data matrix of shapen_obsxn_vars.base (
float(default:2)) – The base of the logarithm (e.g., 2 or 10).inplace (
bool(default:True)) – Whether to updateadataor return a copy of the new AnnData object.copy (
bool(default:True)) – Whether to modify copied input object. Not compatible with inplace=False.
- Return type:
- Returns:
Returns the AnnData object with log-transformed data or updates the input
adataif inplace is True.