Skip to contents

Construct a GWASSumStats from a data.frame with standardized column names.

Usage

GWASSumStats(data, trait_name = "trait", genome = "hg19", var_y = NULL)

Arguments

data

A data.frame with at minimum columns: SNP, CHR, BP, A1, A2, Z, N.

trait_name

Character, name for the trait.

genome

Character, genome build (e.g., "hg19", "hg38").

var_y

Numeric, phenotype variance. For case-control studies this is 1 / (phi * (1 - phi)) where phi = n_case / n. NULL for quantitative traits.

Value

A GWASSumStats object.