select_priorGWASs: Select prior GWASs

View source: R/bGWAS_PriorGWASs.R

select_priorGWASsR Documentation

Select prior GWASs

Description

Allow the quick selection of a subset of prior GWASs based on 2 criteria. First, include all the files specified (if all including parameters are NULL, include all studies), and then remove all the files specified (if all excluding parameters are NULL, keep all studies included at the step before)

Usage

select_priorGWASs(
  include_files = NULL,
  include_traits = NULL,
  exclude_files = NULL,
  exclude_traits = NULL,
  Z_matrices = "~/ZMatrices/",
  verbose = F
)

Arguments

include_files

list of file names (see list_files()) (character)

include_traits

list of trait (see list_traits()) (character)

exclude_files

list of file names (see list_files()) (character)

exclude_traits

list of trait (see list_traits()) (character)

Z_matrices

The path to the folder containing Z-Matrices, default="~/ZMatrices/" (character)

verbose

boolean, default = FALSE

Value

IDs (numeric) of studies that meet the criteria

Examples

  ## Not run: 
  AllStudies = list_priorGWASs()
  list_traits()
  MyStudies = select_priorGWASs(include_traits=c("Heart Rate", "Body Mass Index", "Smoking"))
  AllStudies[AllStudies$ID %in% MyStudies, c("ID", "Name", "Trait", "File")]
## End(Not run)

n-mounier/bGWAS documentation built on Oct. 11, 2023, 1:39 a.m.