projectSample2PCA | R Documentation |
This function calculates the patient eigenvectors using the specified SNP loadings.
projectSample2PCA(gds, listPCA, sample.current, np = 1L)
gds |
an object of class
|
listPCA |
a |
sample.current |
a |
np |
a single positive |
More information about the method used to calculate the patient eigenvectors can be found at the Bioconductor SNPRelate website: https://bioconductor.org/packages/SNPRelate/
a snpgdsPCAClass
object, a list
that contains:
sample.id the sample ids used in the analysis
snp.id the SNP ids used in the analysis
eigenvalues eigenvalues
eigenvect eigenvactors, “# of samples” x “eigen.cnt”
TraceXTX the trace of the genetic covariance matrix
Bayesian whether use bayerisan normalization
Pascal Belleau, Astrid Deschênes and Alexander Krasnitz
## Path to the demo pedigree file is located in this package data.dir <- system.file("extdata", "RAIDS") ## TODO
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.