The function trains a predictive model of a given gene using top mediators as fixed effects and assesses in-sample performance with cross-validation.

convertToDosage(
  format = "plink",
  fileName,
  doseFile,
  locsFile,
  annotFile,
  append = F
)

Arguments

format

character, 'plink' or 'vcf'

fileName

character, prefix only for plink or vcf files

doseFile

character, output file name for dosage file

locsFile

character, output file name for SNP location file

annotFile

character, output file name for SNP annotation file

append

logical, T/F if we are appending to existing files for large plink/vcf files

Value

final model for gene along with CV R2 and predicted values