R/ctwas_weights.R
convert_predictdb_weights_varIDs.Rd
Convert rsIDs and varIDs in predictDB weights to the reference variant format.
convert_predictdb_weights_varIDs(
weight_file,
load_predictdb_LD = TRUE,
varID_converter_fun = NULL,
rsID_converter_fun = NULL,
outputdir = getwd(),
outname
)
filename of the PredictDB weights '.db' file.
If TRUE, load pre-computed LD among weight SNPs.
a user defined function to convert varIDs in weights to the reference variant format. If NULL, do not convert varIDs.
a user defined function to convert rsIDs in weights to the reference variant format. If NULL, do not convert rsIDs.
output directory.
name of the output weight file.