View source: R/ritmic_analysis.R
calc_dist | R Documentation |
calc_dist
groups samples according to their deregulation status
for a given gene. It then computes for each cell type different metrics to
evaluate the distance between the two groups of cell proportions. An important
distance suggests a link between the gene expression and the cell type proportion.
Metrics:
Metric | Tested parameter | Computed parameter |
Kantorovich distance | Transportation | Distance |
Student's t-test | Mean comparison | -log10(p-value) |
Kolmogorov-Smirnov test | Distribution comparison | -log10(p-value) |
calc_dist(binary_penda, A)
binary_penda |
The binary matrix of deregulation 0/1 for each gene and
each sample, can be obtain with the |
A |
The matrix of cell type proportions for each sample. Dimension p (samples) * k (cell types). |
A data frame with for each gene and each cell type the results of the 3 metrics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.