Calculate a dataset-specificity score for each factor
Source:R/factorMarker.R
calcDatasetSpecificity.Rd
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.
Arguments
- object
liger object with factorization results.
- dataset1
Name of first dataset. Required.
- dataset2
Name of second dataset. Required.
- doPlot
Logical. Whether to display a barplot of dataset specificity scores (by factor). Default
FALSE
.- do.plot
Deprecated. Use
doPlot
instead.