View source: R/read_gcta_mlma.R
read_gcta_mlma | R Documentation |
Parses the output generated by GCTA with option --mlma
(genetic assocation test).
Returned table has column names standardized for convenience.
Validated with GCTA version 1.93.2 beta.
read_gcta_mlma(file, ext = "mlma", verbose = TRUE)
file |
The file path to read, possibly missing the extension. |
ext |
The expected file extension.
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()
, the association p-value is "p", and the regression coefficient is "beta" ("orig" -> "new"):
"snp" -> "id"
"bp" -> "pos"
"a1" -> "alt"
"a2" -> "ref"
"b" -> "beta"
gcta_mlma()
wrapper for executing GCTA MLMA and reading the results.
## Not run:
data <- read_gcta_mlma( file )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.