list_sumstats: List munged summary statistics

View source: R/list_sumstats.R

list_sumstatsR Documentation

List munged summary statistics

Description

Searches for and lists local GWAS summary statistics files munged by format_sumstats or import_sumstats.

Usage

list_sumstats(
  save_dir = getwd(),
  pattern = "*.tsv.gz$",
  ids_from_file = TRUE,
  verbose = TRUE
)

Arguments

save_dir

Top-level directory to recursively search for summary statistics files within.

pattern

Regex pattern to search for files with.

ids_from_file

Try to extract dataset IDs from file names. If FALSE, will infer IDs from the directory names instead.

verbose

Print messages.

Value

Named vector of summary stats paths.

Examples

save_dir <- system.file("extdata",package = "MungeSumstats")
munged_files <- MungeSumstats::list_sumstats(save_dir = save_dir)


neurogenomics/MungeSumstats documentation built on Aug. 10, 2024, 5:59 a.m.