View source: R/create_gcae_input_files_2.R
create_gcae_input_files_2 | R Documentation |
Date: 2022-03-07
Goal: assess how well GCAE can predict a phenotype, where the genotype is a simple relationship between the first SNP only and the phenotype
Hypothesis: it does not matter how many noisy SNPs there are, prediction is always good. Performance decreases with more noise SNPs
n = 1000
create_gcae_input_files_2(
base_input_filename = "setting_2",
n_individuals = 1000,
n_random_snps = 0,
plink_options = plinkr::create_plink_options()
)
base_input_filename |
base filename of the files to be created |
n_individuals |
number of individuals |
n_random_snps |
the number of SNPs that do nothing |
plink_options |
PLINK options, as created by create_plink_options |
a gcae_input_filenames
, as can be checked by
check_gcae_input_filenames
Richèl J.C. Bilderbeek
if (plinkr::is_plink_installed()) {
# Create the files
gcae_input_filenames <- create_gcae_input_files_2(
base_input_filename = get_gcaer_tempfilename()
)
# Clean up
file.remove(as.character(unlist(gcae_input_filenames)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.