create_test_gcae_setup: Create a GCAE setup to be used in testing

View source: R/create_test_gcae_setup.R

create_test_gcae_setupR Documentation

Create a GCAE setup to be used in testing

Description

Create a GCAE setup to be used in testing

Usage

create_test_gcae_setup(
  datadir = get_test_datadir(),
  data = get_test_data(),
  superpops = gcaer::get_gcaer_filename("gcae_input_files_1_labels.csv"),
  model_id = "M0",
  train_opts_id = "ex3",
  data_opts_id = "b_0_4",
  pheno_model_id = "p0",
  trainedmodeldir = paste0(get_gcaer_tempfilename(pattern = "ae_out"), "/")
)

Arguments

datadir

directory where sample data is stored. If not absolute: assumed relative to ⁠GenoCAE/⁠ directory. A valid datadir ends with a slash (/) and does not start with a full stop (.), as to mimic the GCAE interface

data

file prefix, not including path, of the data files. The data files must be in EIGENSTRAT or PLINK binary (.bed, .bim, .fam) format)

superpops

path to the superpops file, which contains the labels table and can be read using read_labels_file. This argument is named after the GCAE --superpops CLI flag.

model_id

model id, corresponding to a file models/model_id.json

train_opts_id

train options id, corresponding to a file train_opts/train_opts_id.json

data_opts_id

data options id, corresponding to a file data_opts/data_opts_id.json The data options affect how data is input to the model.

pheno_model_id

phenotype model ID, as checked by check_pheno_model_id

trainedmodeldir

name of the folder to save the trained model to. A valid trainedmodeldir ends with a slash (/) as to mimic the GCAE interface

Value

a GCAE setup

Author(s)

Richèl J.C. Bilderbeek

Examples

create_test_gcae_setup()
check_gcae_setup(create_test_gcae_setup())

richelbilderbeek/gcaer documentation built on March 25, 2024, 3:08 p.m.