format_ALLSPICE_data {ALLSPICER}R Documentation

format_ALLSPICE_data

Description

data formatting function: format raw data to be loaded into ALLSPICE

Usage

format_ALLSPICE_data(data, beta1_field, beta2_field, af_field)

Arguments

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

Value

a data frame containing effect sizes of variants on two phenotypes and their allele frequency information

Examples

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')

[Package ALLSPICER version 0.1.9 Index]