find_pc_number.capper | R Documentation |
The method is described in the paper by Capper et al. entitled "DNA methylation-based classification of central nervous system tumours". In brief, the method shuffles features across samples and determine the PC number by comparing the maximum of eigen values from the randomization.
find_pc_number.capper(x, eigen_values)
x |
A matrix which has columns as features and rows as samples. |
eigen_values |
A vector of eigen values. It is the item
|
A list of three items:
pc_num
An integer scalar of PC number.
variance_fraction
The sum of fraction of variance
of pc_num
PCs.
eigs_shuffled
A numeric vector of eigen values of
the randomized data.
plot
A ggplot
object of
density plot of eigenvalues of observed and randomized data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.