Extract_weigths from MOFA model for a given factor of interest at a defined absolute threshold

extract_weigths(
  model,
  factor = 1,
  threshold = 1.5,
  sense_check_variable = NULL
)

Arguments

model

MOFA model from integration in multiassay@metadata$integration$MOFA

factor

Factor to extract weight from

threshold

Number of standard deviation away from the mean weight

sense_check_variable

default to NULL. High weights should coincide with stronger correlation if the sense_check_variable is an important driver of variation in the designated factor. Will be used to generate a plot if set to a covariate.

Value

List with positive and negative weights above and below the specified threshold, distirbution plots of the weights, and dataframes of the weights for each omic layer.