msmu.pp.normalise
Normalise data in MuData object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mdata
|
MuData
|
MuData object to normalise. |
required |
method
|
str
|
Normalisation method to use. Options are 'quantile', 'median', 'total_sum (not implemented)'. |
required |
modality
|
str
|
Modality to normalise. If None, all modalities at the specified level will be normalised. |
required |
layer
|
str | None
|
Layer to normalise. If None, the default layer (.X) will be used. |
None
|
fraction
|
bool
|
If True, normalise within fractions. If False, normalise across all data. "fraction" yet supports fractionated TMT. |
False
|
Returns:
| Type | Description |
|---|---|
MuData
|
Normalised MuData object. |