View source: R/read_plink_glm.R
read_plink_glm | R Documentation |
plink2 --glm
association tableParses the output generated by plink2
with option --glm
(genetic assocation test).
Returned table has column names standardized for convenience.
Validated with plink2 version "v2.00a6LM AVX2 Intel (4 May 2024)".
read_plink_glm(
file,
pheno = "PHENO1",
ext = "glm.linear",
verbose = TRUE,
v = "a6LM"
)
file |
The file path to read, missing the extension and phenotype identifier. |
pheno |
An identifier of the phenotype used in file path. The default "PHENO1" is for the first, unnamed phenotype in a FAM table. |
ext |
The expected file extension.
(In this case, you cannot set to |
verbose |
If |
v |
Code for format version. Only special value is 'a3LM', which was a previously validated version (full: "v2.00a3LM AVX2 Intel (4 Aug 2021)") with a certain column specification, but which does not work for latest version. Any other value sets column specifications to those of "v2.00a6LM AVX2 Intel (4 May 2024)". |
The table as a tibble
.
Original names (as they appear in the header line of the file) are modified by lowercasing all, followed by these specific mappings to ensure that columns shared by BIM table have the same names as those returned by genio::read_bim()
, the association p-value is "p", and the regression coefficient is "beta" ("orig" -> "new"):
"#chrom" -> "chr"
plink_glm()
wrapper for executing plink2 --glm
and reading the results.
## Not run:
data <- read_plink_glm( file )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.