View source: R/read_plink_hardy.R
read_plink_hardy | R Documentation |
plink2 --hardy
output tableParses the output generated by plink2
with option --hardy
(Hardy-Weinberg test).
Returned table has column names standardized for convenience.
Validated with plink2 version "v2.00a3LM AVX2 Intel (4 Aug 2021)".
read_plink_hardy(file, ext = "hardy", verbose = TRUE)
file |
The file path to read, missing the extension. |
ext |
The expected file extension.
(In this case, you cannot set to |
verbose |
If |
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()
, and the test p-value is "p" ("orig" -> "new"):
"#chrom" -> "chr"
"a1" -> "ref"
"ax" -> "alt"
"midp" -> "p" if present (in outputs with option "midp" this column replaces "p")
plink_hardy()
wrapper for executing plink2 --hardy
and reading the results.
## Not run:
data <- read_plink_hardy( file )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.