omicverse.single.get_weights

目录

omicverse.single.get_weights#

omicverse.single.get_weights(hdf5_path, view, factor, scale=True)[源代码]#

Extract feature loadings for one factor from a MOFA model.

参数:
  • hdf5_path (str) – Path to MOFA .hdf5 model file.

  • view (str) – View/modality name to query.

  • factor (int) – 1-based factor index.

  • scale (bool) – If True, rescale weights by maximum absolute value.

返回:

Feature table containing raw/absolute weights and sign label.

返回类型:

pd.DataFrame