print.pcair: PC-AiR: Principal Components Analysis in Related Samples

Description Usage Arguments Author(s) See Also Examples

View source: R/pcair_S3methods.R

Description

Print methods for pcair

Usage

1
2
3
4
5
6
## S3 method for class 'pcair'
print(x, ...)
## S3 method for class 'pcair'
summary(object, ...)
## S3 method for class 'summary.pcair'
print(x, ...)

Arguments

object

An object of class 'pcair', i.e. output from the pcair function.

x

An object of class 'pcair', i.e. output from the pcair function.

...

Further arguments passed to or from other methods.

Author(s)

Matthew P. Conomos

See Also

pcair for obtaining principal components that capture population structure in the presence of relatedness.

Examples

 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)

GENESIS documentation built on Jan. 30, 2021, 2:01 a.m.