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

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.