This score represents the relative magnitude of the dataset-specific components of each factor's gene loadings compared to the shared components for two datasets. First, for each dataset we calculate the norm of the sum of each factor's shared loadings (\(W\)) and dataset-specific loadings (\(V\)). We then determine the ratio of these two values and subtract from 1... TODO: finish description.
calcDatasetSpecificity(
object,
dataset1,
dataset2,
doPlot = FALSE,
do.plot = doPlot
)
List containing three elements.
Vector of the norm of each metagene factor for dataset1.
Vector of the norm of each metagene factor for dataset2.
Vector of dataset specificity scores.
liger object with factorization results.
Name of first dataset. Required.
Name of second dataset. Required.
Logical. Whether to display a barplot of dataset specificity
scores (by factor). Default FALSE
.
Deprecated. Use doPlot
instead.