gcta_grm | R Documentation |
Uses gcta64
with -grm
and default option to estimate the kinship matrix.
The output file will be named name_out
using the output name below with extensions grm.bin
, grm.N.bin
, and grm.id
.
gcta_grm(
name,
name_out = name,
gcta_bin = "gcta64",
threads = 0,
verbose = TRUE
)
name |
The shared name of the input plink BED/BIM/FAM files without extensions. |
name_out |
The base name of the output binary GRM files (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 |
verbose |
If |
Nothing (the kinship matrix is not read in; see example below for reading with a different function).
genio::read_grm()
for reading binary GRM matrices.
gcta_mlma()
for running GWAS with GCTA.
gcta_pca()
for estimating PCA from GRM with GCTA.
genio::delete_files_grm()
for deleting GRM files.
delete_files_log()
for deleting the GCTA log file.
system3()
, used (with ret = FALSE
) for executing GCTA and error handling.
## Not run:
# create kinship matrix estimate (on file)
gcta_grm( name, name_out )
# read file with genio
data <- genio::read_grm( name_out )
kinship <- data$kinship
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.