bpFitGrid {scPCA} | R Documentation |
This function is used to automatically select the optimal
contrastive parameter and L1 penalty term for scPCA based on a clustering
algorithm and average silhouette width. Analogous to fitGrid
,
but replaces all lapply
calls by
bplapply
.
bpFitGrid(target, target_valid = NULL, center, scale, c_contrasts, contrasts, penalties, n_eigen, clust_method = c("kmeans", "pam"), n_centers, max_iter = 10)
target |
The target (experimental) data set, in a standard format such
as a |
target_valid |
A holdout set of the target (experimental) data set, in a
standard format such as a |
center |
A |
scale |
A |
c_contrasts |
A |
contrasts |
A |
penalties |
A |
n_eigen |
A |
clust_method |
A |
n_centers |
A |
max_iter |
A |
A list similar to that output by prcomp
:
rotation - the matrix of variable loadings
x - the rotated data, centred and scaled, if requested, data multiplied by the rotation matrix
contrast - the optimal contrastive parameter
penalty - the optimal L1 penalty term