View source: R/pcair_S3methods.R
print.pcair | R Documentation |
Print methods for pcair
## S3 method for class 'pcair'
print(x, ...)
## S3 method for class 'pcair'
summary(object, ...)
## S3 method for class 'summary.pcair'
print(x, ...)
object |
An object of class ' |
x |
An object of class ' |
... |
Further arguments passed to or from other methods. |
Matthew P. Conomos
pcair
for obtaining principal components that capture population structure in the presence of relatedness.
# file path to GDS file
gdsfile <- system.file("extdata", "HapMap_ASW_MXL_geno.gds", package="GENESIS")
# read in GDS data
HapMap_geno <- gdsfmt::openfn.gds(gdsfile)
# load saved matrix of KING-robust estimates
data("HapMap_ASW_MXL_KINGmat")
# run PC-AiR
mypcair <- pcair(HapMap_geno, kinobj = HapMap_ASW_MXL_KINGmat,
divobj = HapMap_ASW_MXL_KINGmat)
print(mypcair)
summary(mypcair)
gdsfmt::closefn.gds(HapMap_geno)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.