R/ctwas_weights.R
convert_fusion_to_predictdb.Rd
Converts fusion weights to predictDB format
the directory containing FUSION weights ('.wgt.RDat' files).
a string, specifying the method to choose in FUSION models. "best.cv" option will use the best model (smallest p-value) under cross-validation.
a string, specifying the genome version of FUSION models
If TRUE, make an extra table in predictDB format
a data frame of covariances between variants, with columns: "GENE","RSID1","RSID2","VALUE". If NULL, do not create covariance files (.txg.gz).
output directory
name of the output weight file