Searches for and lists local GWAS summary statistics files munged by format_sumstats or import_sumstats.
list_sumstats(
save_dir = getwd(),
pattern = "*.tsv.gz$",
ids_from_file = TRUE,
verbose = TRUE
)
Top-level directory to recursively search for summary statistics files within.
Regex pattern to search for files with.
Try to extract dataset IDs from file names.
If FALSE
, will infer IDs from the directory names instead.
Print messages.
Named vector of summary stats paths.
save_dir <- system.file("extdata",package = "MungeSumstats")
munged_files <- MungeSumstats::list_sumstats(save_dir = save_dir)
#> 1 file(s) found.