Skip to content

msmu.dt.load_layer

Load a named layer into a modality's .X, in place; other annotations are unchanged.

Parameters:

Name Type Description Default
mdata MuData

MuData to modify.

required
modality str

Modality containing the layer.

required
layer str

Source layer name; missing names raise KeyError.

required

Returns:

Type Description
MuData

The same MuData with .layers[layer] copied into .X.