Description Usage Arguments Value References See Also Examples
View source: R/proprotionality.R
proportionality
is a wrapper that compute proportionality distance for
a clustering result (pca
, spca
, pls
, spls
, block.pls
, block.spls
).
and it performs a u-test to compare the median within a cluster to the median of the entire background set.
1 |
X |
an object of the class: |
Return a list containing the following components:
propr.distance |
Square matrix with proportionality distance between pairs of features |
propr.distance.w.cluster |
distance between pairs with cluster label |
pvalue |
Wilcoxon U-test p-value comparing the medians within clusters and with the entire background set |
Lovell, D., Pawlowsky-Glahn, V., Egozcue, J. J., Marguerat, S., B<c3><a4>hler, J. (2015). Proportionality: a valid alternative to correlation for relative data. PLoS Comput. Biol. 11, e1004075. doi: 10.1371/journal.pcbi.1004075
Quinn, T. P., Richardson, M. F., Lovell, D., Crowley, T. M. (2017). propr: an r-package for identifying proportionally abundant features using compositional data analysis. Sci. Rep. 7, 16252. doi: 10.1038/s41598-017-16520-0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | demo <- suppressWarnings(get_demo_cluster())
# pca
X <- demo$pca
propr.res <- proportionality(X)
plot(propr.res)
# pls
X <- demo$spls
propr.res <- proportionality(X)
plot(propr.res)
# block.pls
X <- demo$block.spls
propr.res <- proportionality(X)
plot(propr.res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.