Description Usage Arguments Value Author(s)
View source: R/weight.ref.pca.R
Compute weight that represent how similar samples are to the reference samples, from the PCA. These weights could be used to guide a better normalization or adjustment of the stringency for the calls. Indeed, some subtle 'abnormal' signal detected might be due to fact that a sample is globally different from the reference samples, hence a stronger normalization and/or a more stringent calling is advised. STILL IN DEVELOPMENT.
1 | weight.ref.pca(pca.mat, ref.samples, plot = FALSE, output.dist = FALSE)
|
pca.mat |
a matrix with the principal components as columns and the sample names as row names. The first two components are used. |
ref.samples |
the names of the samples used as reference. |
plot |
should some graphs be displayed. Default is FALSE. |
output.dist |
should the distance to the reference sample centroid be outputed instead of the weights. Default is FALSE. |
a vector with the weights for each sample.
Jean Monlong
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.