pgs_add_all | R Documentation |
This function calls on [pgs_add
] to read in all
PGS at specified significance levels, and adds that data
to the MOAS-type data provided.
pgs_add_all(
MOAS = NULL,
s_levels = paste0("S", 1:12),
pgs_path = NULL,
genetic_match_file = NULL,
include_cnt = FALSE,
include_genetic_debug = FALSE
)
MOAS |
data.frame of the full MOAS or MOAS sub-set |
s_levels |
character vector of the significance levels wanted |
pgs_path |
path to the directory where the PGS's are stored |
genetic_match_file |
path to the file containing the MOAS-genetics matching and debugging information |
include_cnt |
logical, whether to keep SNP count information |
include_genetic_debug |
logical, whether to keep all columns in the genetic_match_file in the final output |
a tibble / data.frame
Other pgs-functions:
pgs_add_single()
,
pgs_add()
,
pgs_get_all()
,
pgs_get_single()
,
pgs_get()
,
pgs_read()
## Not run:
# In this version you dont need to specify the
# PGS you want, it will take all it finds in the
# folder path provided, and add them to the MOAS
# data you provided
pgs_add_all(
MOAS,
s_levels = c("S1", "S7", "S11"),
pgs_path = "path/to/PGS_wAPOE/",
genetic_match_file = character(),
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.