get_SVD: Wrapper for the snp_autoSVD function for the CDBN.

Description Usage Arguments Value Examples

View source: R/cdbn_kinship.R

Description

This is a wrapper to determine population structure for GWAS for a bigSNP object. Arguments that are recognized by bigsnpr::snp_autoSVD can also be specified in this function.

Usage

1
get_SVD(snp, k = 10, ncores = 1, saveoutput = FALSE, ...)

Arguments

snp

A "bigSNP" object; load with bigsnpr::snp_attach().

k

Integer. The number of principal components to find. Default is 10.

ncores

Integer. Number of cores to use. Default is one.

saveoutput

Logical. Should the output be saved to the working directory?

...

Other arguments to snp_autoSVD.

Value

A big_SVD object.

Examples

1
2
3
4
## Not run: 
svd20 <- get_SVD(snp = snp, k = 20, saveoutput = TRUE)

## End(Not run)

Alice-MacQueen/CDBNgenomics documentation built on Aug. 18, 2020, 4:39 p.m.