Skip to contents

Converts the list returned by load_rss_data (with elements sumstats, n, var_y) into a GWASSumStats object.

Usage

rss_to_gwas_sumstats(rss_list, trait_name = "trait", genome = "hg38")

Arguments

rss_list

A list with elements sumstats (data.frame), n (numeric or NULL), and var_y (numeric or NULL), as returned by load_rss_data.

trait_name

Character, name for the trait.

genome

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

Value

A GWASSumStats object, or NULL if rss_list$sumstats has zero rows.