Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

calcAlignmentPerCluster

Calculate alignment for each cluster


Description

Returns alignment for each cluster in analysiss (see documentation for calcAlignment).

Usage

calcAlignmentPerCluster(object, rand.seed = 1, k = NULL, by.dataset = FALSE)

Arguments

object

liger object. Should call quantileAlignSNF before calling.

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).

Value

Vector of alignment statistics (with names of clusters).

Examples

## Not run: 
# ligerex (liger object), factorization complete
ligerex <- quantile_norm(ligerex)
# get alignment for each cluster
alignment_per_cluster <- calcAlignmentPerCluster(ligerex)

## End(Not run)

rliger

Linked Inference of Genomic Experimental Relationships

v1.0.0
GPL-3
Authors
Joshua Welch [aut, ctb], Chao Gao [aut, ctb, cre], Jialin Liu [aut, ctb], Joshua Sodicoff [aut, ctb], Velina Kozareva [aut, ctb], Evan Macosko [aut, ctb], Paul Hoffman [ctb], Ilya Korsunsky [ctb], Robert Lee [ctb]
Initial release
2021-04-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.