Skip to content

msmu.pp.log2_transform

Apply log2 transformation to the specified modality in MuData object.

Parameters:

Name Type Description Default
mdata MuData

MuData object to transform.

required
modality str

Modality to log2 transform.

required
layer str | None

Layer to transform. If None, the default layer (.X) will be used.

None

Returns:

Type Description
MuData

Transformed MuData object.