gcta_reml | R Documentation |
A wrapper for running GCTA variance component estimation followed by reading of the results by read_gcta_hsq()
.
gcta_reml(
name,
name_grm = name,
name_phen = name,
name_out = name,
gcta_bin = "gcta64",
threads = 0,
m_pheno = 1,
verbose = TRUE
)
name |
The shared default name of the input and output files without extensions. |
name_grm |
The shared name of the input binary GRM files without extensions (default same as input |
name_phen |
The base name of the phenotype file without PHEN extension (default same as input |
name_out |
The base name of the output variance component file (default same as input |
gcta_bin |
The path to the binary executable.
Default assumes |
threads |
The number of threads to use.
The values 0 (default), NA, or NULL use all threads available (the output of |
m_pheno |
The index of the phenotype to analyze. Defaults to the first phenotype in the given phenotype table. |
verbose |
If |
A list containing the estimated heritability, its standard error, and the full table of estimated variance components, as a tibble
, read with read_gcta_hsq()
(see that for more info).
gcta_grm()
for estimating the kinship (GRM) matrix with GCTA.
read_gcta_hsq()
for parsing the output of GCTA MLMA.
delete_files_gcta_hsq()
and delete_files_log()
for deleting the GCTA output files.
system3()
, used (with ret = FALSE
) for executing GCTA and error handling.
## Not run:
obj <- gcta_reml( name, name_out )
obj$herit
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.