powered by
data formatting function: format raw data to be loaded into ALLSPICE
format_ALLSPICE_data(data, beta1_field, beta2_field, af_field)
a data frame containing effect sizes of variants on two phenotypes and their allele frequency information
raw input data
field name of effect size for the first phenotype
field name of effect size for the second phenotype
field name of 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')
Run the code above in your browser using DataLab