calcAlignmentPerCluster | R Documentation |
Returns alignment for each cluster in analysiss (see documentation for calcAlignment).
calcAlignmentPerCluster(object, rand.seed = 1, k = NULL, by.dataset = FALSE)
object |
|
rand.seed |
Random seed for reproducibility (default 1). |
k |
Number of nearest neighbors in calculating alignment (see calcAlignment for default). Can pass in single value or vector with same length as number of clusters. |
by.dataset |
Return alignment calculated for each dataset in cluster (default FALSE). |
Vector of alignment statistics (with names of clusters).
ligerex <- createLiger(list(ctrl = ctrl, stim = stim))
ligerex <- normalize(ligerex)
ligerex <- selectGenes(ligerex)
ligerex <- scaleNotCenter(ligerex)
# Specification for minimal example run time, not converging
ligerex <- optimizeALS(ligerex, k = 5, max.iters = 1)
ligerex <- quantile_norm(ligerex)
agreement <- calcAlignmentPerCluster(ligerex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.