View source: R/plink2_assoc_on_plink2_bin_files.R
plink2_assoc_on_plink2_bin_files | R Documentation |
PLINK2
detect an association with one binary trait
on PLINK2
binary filesLet PLINK2
detect an association with one binary trait
on PLINK2
binary files
plink2_assoc_on_plink2_bin_files(
assoc_data,
assoc_params,
plink_options = create_plink_v2_0_options(),
verbose = FALSE
)
assoc_data |
data to use for an association analysis for a quantitative trait (i.e. using assoc), as can be created by create_assoc_data |
assoc_params |
parameters to do an association analysis for a quantitative trait (i.e. using assoc), as can be created by create_assoc_params |
plink_options |
options to run PLINK, as created by create_plink_options |
verbose |
the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid. |
a list with the following columns:
assoc_table
: a tibble with associations
found by PLINK2
.
See read_plink_assoc_file for an explanation of the
column names.
log
: the log file as text as created by PLINK2
This function is named after the --assoc
flag used by PLINK
Richèl J.C. Bilderbeek
if (is_plink_installed()) {
if (1 == 2) {
# Need help of 'pgenlibr' to save a .pgen file
plink2_assoc_on_plink2_bin_files(
assoc_data = create_assoc_data(create_test_plink2_bin_filenames()),
assoc_params = create_test_assoc_params()
)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.