pvdiv_autoSVD: Wrapper for the snp_autoSVD function for switchgrass.

Description Usage Arguments Value Examples

View source: R/pvdiv_standard_gwas.R

Description

This is a wrapper to determine population structure for GWAS for a SNP file with the switchgrass chromosomes, which are not numeric. Arguments that are recognized by bigsnpr::snp_autoSVD can also be specified in this function.

Usage

1
pvdiv_autoSVD(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
snpfile <- system.file("extdata", "example_bigsnp.rds", package = "switchgrassGWAS")
library(bigsnpr)
snp <- snp_attach(snpfile)
svd5 <- pvdiv_autoSVD(snp = snp, k = 5, saveoutput = FALSE)

Alice-MacQueen/switchgrassGWAS documentation built on Jan. 23, 2022, 7:55 p.m.