create_ds_matrix: This function creates a trait snp matrix 'create_ts_matrix'...

Description Usage Arguments Value

View source: R/cupfunc.R

Description

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

Usage

1
create_ds_matrix(bDT, sDT, method)

Arguments

bDT

data.table object for basis traits as returned by get_gwas_data

sDT

data.table object of matching shrinkage estimates returned by compute_shrinkage_metrics

method

scalar vector (either emp or est), emp uses empirically generated MAF SE, est uses and estimate.

Value

a matrix.


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