Skip to contents

Read and standardize GWAS summary statistics from file. Optionally uses MungeSumStats for format detection and QC.

Usage

readSumstats(
  path,
  trait_name = "trait",
  genome = NULL,
  n = NULL,
  use_mungesumstats = TRUE,
  ...
)

# S4 method for class 'character'
readSumstats(
  path,
  trait_name = "trait",
  genome = NULL,
  n = NULL,
  use_mungesumstats = TRUE,
  ...
)

Arguments

path

Character, path to the summary statistics file.

trait_name

Character, name for the trait.

genome

Character, genome build (e.g., "hg19", "hg38"). If NULL, inferred by MungeSumStats.

n

Numeric, sample size (if not in the file).

use_mungesumstats

Logical, whether to use MungeSumStats for standardization. Default TRUE if available.

...

Additional arguments.

Value

A GWASSumStats object.