save_BETA: save the regression coefficients (betas) into file(s).

Description Usage Arguments Details

View source: R/fileIO.R

Description

We use up to 2 files corresponding to the betas for genetic variants as well as the ones for covariates (optional).

Usage

1
save_BETA(df, out.file.head, pvar, covariates = NULL, verbose = FALSE)

Arguments

df

a dataframe containing beta values

out.file.head

a prefix of the output file name

pvar

a path to pvar file containing the list of variants

covariates

a list of covariates

verbose

A boolean variable indicating whether we should dump logs

Details

For the genetic variants, we recover the information stored in the pvar[.zst] file and sort the results based on CHROM and POS columns.


rivas-lab/snpnet documentation built on Dec. 14, 2021, 3:22 a.m.