Learn R Programming

ALLSPICER (version 0.1.9)

format_ALLSPICE_data: 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)

Value

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

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

Examples

Run this code
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