Skip to content

msmu.utils.split_tmt

Split TMT channels in a MuData object into separate modalities based on a mapping.

Parameters

mdata : MuData The MuData object containing TMT data. map : dict[str, str] | pd.Series | pd.DataFrame A mapping of filenames to set names. If a DataFrame is provided, it should have two columns: the first for filenames and the second for set names.

Returns

MuData The modified MuData object with TMT channels split into separate modalities.