print.pcair {GENESIS} | R Documentation

## PC-AiR: Principal Components Analysis in Related Samples

### Description

Print methods for pcair

### Usage

    ## 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

    # 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)

[Package GENESIS version 2.12.4 Index]