| find_sumstats {MungeSumstats} | R Documentation |
For each argument, searches for any datasets matching a case-insensitive substring search in the respective metadata column. Users can supply a single character string or a list/vector of character strings.
find_sumstats( ids = NULL, traits = NULL, years = NULL, consortia = NULL, authors = NULL, populations = NULL, categories = NULL, subcategories = NULL, builds = NULL, pmids = NULL, min_sample_size = NULL, min_ncase = NULL, min_ncontrol = NULL, min_nsnp = NULL, include_NAs = FALSE, access_token = check_access_token() )
ids |
List of Open GWAS study IDs
(e.g. |
traits |
List of traits
(e.g. |
years |
List of years
(e.g. |
consortia |
List of consortia
(e.g. |
authors |
List of authors
(e.g. |
populations |
List of populations
(e.g. |
categories |
List of categories
(e.g. |
subcategories |
List of categories
(e.g. |
builds |
List of genome builds
(e.g. |
pmids |
List of PubMed ID (exact matches only)
(e.g. |
min_sample_size |
Minimum total number of study participants
(e.g. |
min_ncase |
Minimum number of case participants
(e.g. |
min_ncontrol |
Minimum number of control participants
(e.g. |
min_nsnp |
Minimum number of SNPs
(e.g. |
include_NAs |
Include datasets with missing metadata for size criteria
(i.e. |
access_token |
Google OAuth2 access token. Used to authenticate level of access to data |
By default, returns metadata for all studies currently in Open GWAS database.
(Filtered) GWAS metadata table.
#only run the examples if user has internet access:
if(try(is.character(getURL("www.google.com")))==TRUE){
### By ID
metagwas <- find_sumstats(ids = c(
"ieu-b-4760",
"prot-a-1725",
"prot-a-664"
))
### By ID amd sample size
metagwas <- find_sumstats(
ids = c("ieu-b-4760", "prot-a-1725", "prot-a-664"),
min_sample_size = 5000
)
### By criteria
metagwas <- find_sumstats(
traits = c("alzheimer", "parkinson"),
years = seq(2015, 2021)
)
}