create_basis: This function creates a basis 'create_basis' creates a trait...

Description Usage Arguments Value

View source: R/cupfunc.R

Description

This function creates a basis create_basis creates a trait snp matrix that is suitable for basis creation and projection

Usage

1
create_basis(gwas.DT, shrink.DT, apply.shrinkage = TRUE)

Arguments

gwas.DT

data.table object for basis traits as returned by get_gwas_data

shrink.DT

data.table object of matching shrinkage estimates returned by compute_shrinkage_metrics

apply.shrinkage

boolean on whether to apply shrinkage or not [Default TRUE]

Value

a prcomp object representing the basis


ollyburren/cupcake documentation built on July 30, 2020, 9:58 a.m.