Description Usage Arguments Details Value Examples
Calculates summary statistics to facilitate the fitting of a ZINB model, performs various data input checks.
1 2 3 4 5 6 | base_dist(merged_profiles, type="euclidean")
pearson_dist(merged_profiles, type="pearson")
spearman_dist(merged_profiles, type="spearman")
phis_dist(merged_profiles)
rhop_dist(merged_profiles)
cosine_dist(merged_profiles)
|
merged_profiles |
Output from: merge_profiles function. |
type |
type of distance to calcuate for methods with multiple options. |
Calculates all pairwise distances between cell-types, using different distance measures.
base_dist = wrapper of stats::dist
methods
pearson_dist/spearman_dist = 1 - correlation, wrapper of stats::cor
methods.
phis_dist = wrapper of propr::phis
.
rhop_dist = 1 - propr::perb
.
cosine_dist = 1 - lsa::cosine
.
For phis and rhop proportion methods, profiles are shifted up so that none of the values are negative.
Distance matrix.
1 2 3 4 5 6 7 8 9 10 11 | obj <- list(
mus = matrix(rnorm(200), ncol=10),
rs = matrix(rgamma(200, shape=0.75, scale=1), ncol=10),
ds = matrix(runif(200), ncol=10),
Ns = matrix(rpois(200, lambda=30), ncol=10))
d1 <- base_dist(obj, type="manhattan")
d2 <- spearman_dist(obj)
d3 <- pearson_dist(obj)
d4 <- phis_dist(obj)
d5 <- rhop_dist(obj)
d6 <- cosine_dist(obj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.