format_ALLSPICE_data {ALLSPICER} | R Documentation |
data formatting function: format raw data to be loaded into ALLSPICE
format_ALLSPICE_data(data, beta1_field, beta2_field, af_field)
data |
raw input data |
beta1_field |
field name of effect size for the first phenotype |
beta2_field |
field name of effect size for the second phenotype |
af_field |
field name of allele frequency information |
a data frame containing effect sizes of variants on two phenotypes and their allele frequency information
data <- data.frame(x = rnorm(10), y = rnorm(10), z = runif(10, 0,1))
data <- format_ALLSPICE_data(data=data, beta1_field = 'x', beta2_field = 'y', af_field = 'z')