Description Usage Arguments Author(s) See Also Examples
View source: R/pcair_S3methods.R
Print methods for pcair
1 2 3 4 5 6 |
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.
1 2 3 4 5 6 7 8 9 10 11 12 | # 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.