gemma_kin | R Documentation |
Uses gemma
with -gk
and default option to estimate the kinship matrix.
The output file will be named name_out
.cXX.txt using the output name below.
gemma_kin(
name,
name_out = name,
gemma_bin = "gemma",
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 kinship file (default same as input |
gemma_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_matrix()
for reading plain-text matrices.
gemma_lmm()
for running GWAS with GEMMA.
delete_files_logtxt()
for deleting the GEMMA log file.
system3()
, used (with ret = FALSE
) for executing GEMMA and error handling.
## Not run:
# create kinship matrix estimate (on file)
gemma_kin( name )
# read file with genio
kinship <- genio::read_matrix( name, ext = 'cXX.txt' )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.