Extract loadings

extract_loadings(
  integrated_object,
  metadata,
  component = 1,
  sense_check_variable = NULL,
  threshold = 0.2
)

Arguments

integrated_object

integrated_object

metadata

metadata

component

component

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.

threshold

Absolute threshold to filter weights

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.